-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version of kubectl.exe that the command az acs kubernetes install-cli
brings is incorrect
#2506
Comments
It should be downloading 1.5.1: https://github.com/Azure/azure-cli/blob/master/src/command_modules/azure-cli-acs/azure/cli/command_modules/acs/custom.py#L268 |
I tried it just now and a fresh downloaded copy prints |
Then you probably need to update your CLI. |
cc: @brendandburns Should we just always pull the latest released kubectl binary ( Or just try to make sure we update this in the CLI as we update the service? |
My version of azure cli (by
|
It should match the kubernetes cluster that azure creates. I had problems due the fact that kubernetes cli was in lesser version than kubernetes cluster server. |
Mind that i am referencing Windows platform, so the path above ( |
Yes, that's clear. Can you please try updating your CLI to latest? If we try to match the cluster, you may end up with weirdness. Say one cluster is on 1.5 and one is on 1.4. In that case, you still want the 1.5 client, not the 1.4 client. Hence why I suggest maybe we should just download latest. And yeah, the code is already written to differentiate between the windows/mac/linux download links. Newer clients should be backward compatible with older clusters. |
Regarding different clusters, I am not sure that I follow. Do you mean that Azure means to support different versions of Kubernetes? Otherwise the version is same for all clusters.
The version of CLI after that remained 2.0.0 |
Maybe file a different issue for that then, I can't help debug the cli upgrade unfortunately. |
I can only say that installing fresh new Azure CLI also installs v2.0.0 so I do not know what else should be updated (maybe pip repository) in order to get more recent CLI version. |
@minherz The upgrade failure is due to windows file path limit (#1221 (comment)) |
Hi,
|
The latest acs module is 2.0.1. You can run |
Maybe, but the output is what I got after uninstall and install commands for the default pip repository. |
With the above, pip doesn't actually remove the acs module. |
@minherz perhaps the install location is different? I'd try |
@derekbekoe actually the acs module was upgraded. if you will look to the first az version list in the beginning of the thread and then one below, you will see it was upgraded from v2.0.0 to v2.0.1 @brendandburns according to az cli help ( |
Ah, I see the problem, will send a fix... |
Fix is here: In the meantime you can use:
|
Thank you. Now I see that the "problem" is in default value for |
Hello,
Correct for today, executing CLI command
az acs kubernetes install-cli
downloads the1.4.5
of thekubectl.exe
while the server version is1.5.3
. As result, many commands of the kubernetes CLI do not work (see issue 392 in azure-engine).Please, update the
kubectl.exe
binary with the latest (1.5) version.The above issue has a link to 1.5.0 binary location.
The text was updated successfully, but these errors were encountered: