kubectl: command not found #4993
Unanswered
imranrazakhan
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Just use your third approach. It's the right way! You are probably running your shellscript as root. On CentOS, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have develop a bash script for airgap installation on CentOS 7 but after k3s installation its throwing error command not found for kubectl
k3s installation is successful but at kubectl command it throw error
First Try:
After k3s install added following line, but no success
Second Try:
So /usr/local/bin get call again but no success
source ~/.bash_profile
Third Try:
Change command like below and it work
/usr/local/bin/kubectl wait --for=condition=Ready nodes --all --timeout=600s
If i run kubectl directly on shell it works, Please let me know if i am missing something
Beta Was this translation helpful? Give feedback.
All reactions