1
votes

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?

3

3 Answers

2
votes

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

0
votes

Please check which executable file is refered to kubectl command using:

C:\where kubectl

This should be the same as you are trying to install.

There are few methods for installing kubectl listed in installation guide. For example by using powershell you could accidentally install kubectl in your temp directory if you do not specify a DownloadLocation.

-1
votes

use the below command to check kubectl client version

kubectl version --short --client=true

if you want to check both kubectl client and api server version, then try the below command

kubectl version --short
master $ kubectl version --short --client=true
Client Version: v1.11.3
master $ kubectl version --short
Client Version: v1.11.3
Server Version: v1.11.3