I dit a new install of kubectl and after i get the message:
Warnings: - kubernetes-cli - kubernetes-cli v1.13.3 already installed. Use --force to reinstall, specify a version to install, or try upgrade.
But when I ask kubectl version I get this information:
C:\Users\myname> kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.11", GitCommit:"637c7e288581ee40ab4ca210618a89a555b6e7e9", GitTreeState:"clean", BuildDate:"2018-11-26T14:38:32Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"windows/amd64"} Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.5", GitCommit:"753b2dbc622f5cc417845f0ff8a77f539a4213ea", GitTreeState:"clean", BuildDate:"2018-11-26T14:31:35Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
Why I don't find the version number 1.13 in the version information's?
In my case, I had this issue because I have both Docker and the Kubernetes CLI installed; at time of writing, Docker currently ships with version v1.10 of kubectl, whereas the Kubernetes CLI ships with v1.14
The simple solution was just to re-order my environment variables so that the Docker version of kubectl was after the Kubernetes CLI 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