question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"kubectl" command not found error..

See original GitHub issue
[root@localhost ~]# kube-shell

kube-shell> kubectl get services
/bin/sh: kubectl: command not found
kube-shell> exit

Any thoughts why this happens?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
andradedpgcommented, Mar 24, 2022

I really don’t know thats is necessary… But I solved that with symlink

ln -s /usr/local/bin/kubectl /usr/bin/

0reactions
VenkateshSarivisettycommented, Aug 7, 2019

Hi, Any answers for this, becoz I am facing the same issue, though I have installed the kops and kubectl in linux machine. Please share your thoughts

bash: kubectl: command not found

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kubernetes: kubectl run: command not found - Stack Overflow
I get the error: -bash: kubectl: command not found. Here's how I fixed it: Download the latest Kubernetes release with the command:
Read more >
Install and Set Up kubectl on Linux - Kubernetes
In order for kubectl to find and access a Kubernetes cluster, it needs a kubeconfig file, which is created automatically when you create...
Read more >
kubectl: command not found - The Geek Diary
The Kubernetes command-line tool, kubectl is used to run commands against Kubernetes clusters. You'll use kubectl to inspect and manage your service's cluster ......
Read more >
Troubleshoot kubectl issues - Bitnami Documentation
Error 1: kubectl does not permit access to certain resources. This occurs when you run the kubectl command and see the following error:...
Read more >
Command not found error while running exec command on ...
I am trying this- kubectl exec -it examplepod -n namespacename-ci -- /bin/bash. ... Tried running apt-get install commands but kept in getting ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found