I am new to Kubernetes. I am trying to launch a kubernetes cluster in my local mac machine. I am using following command to launch Kubernetes:
minikube start --vm-driver=hyperkit
I am getting following error:
/usr/local/bin/kubectl is version 1.14.7, and is incompatible with Kubernetes 1.17.0.
You will need to update /usr/local/bin/kubectl or use 'minikube kubectl' to connect with this cluster
Now while executing following command:
minikube kubectl
It is not doing anything, just showing basic commands along with their usages.
And while trying to upgrade kubetctl it is showing it is already up to date.
I have not found any solution for this. Any idea regarding how to fix this ?
If you have already upgraded and got the same error, try below
brew link --overwrite kubernetes-cli
The best solution for you is to update kubectl manually. To perform this you need to download the binary:
https://storage.googleapis.com/kubernetes-release/release/v1.17.0/bin/darwin/amd64/kubectl
Change permissions of kubectl to be executable:
$ chmod +x ./kubectl
And move to /usr/local/bin/ overwriting the old one.
$ sudo mv ./kubectl $(which kubectl)
To check the effects, run:
$ kubectl version
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With