question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running `az aks install-cli` should install the CLI version compatible with the AkS cluster

See original GitHub issue

Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: pip

CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here: 2.0.2

OS Version: What OS and version are you using?
Answer here: Linux ultralisk 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 GNU/Linux

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: /bin/bash


Description

When installing the kubectl CLI for my ACS cluster which was created using az acs create, az acs kubernetes install-cli installs v1.6.2 even though acs currently installs v1.5.3:

><> sudo az acs kubernetes install-cli
><> k version
Client Version: version.Info{Major:"1", Minor:"6", GitVersion:"v1.6.2", GitCommit:"477efc3cbe6a7effca06bd1452fa356e2201e1ee", GitTreeState:"clean", BuildDate:"2017-04-19T20:33:11Z", GoVersion:"go1.7.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.3", GitCommit:"029c3a408176b55c30846f0faedf56aae5992e9b", GitTreeState:"clean", BuildDate:"2017-02-15T06:34:56Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}

The simple workaround is to run sudo az acs kubernetes install-cli --client-version=v1.5.3.

The docs I used to install acs and azure-cli was followed here: https://deis.com/docs/workflow/quickstart/provider/azure-acs/boot/

disclaimer: I’m a Deis engineer 😃

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
bacongobblercommented, Jul 27, 2019

This should probably be re-opened and re-titled for az aks install-cli. Even though ACS is being deprecated, this functionality (and therefore the same issue) continues to exist for AKS.

1reaction
palma21commented, Dec 16, 2019

We will update install-cli to accept cluster name and resource group, in which case it will install the latest patch compatible with that cluster.

Let us know if that sounds good.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure an AKS cluster - Azure Kubernetes Service
You need the latest version of Azure CLI. Run az --version to find the version. If you need to install or upgrade, see...
Read more >
Setting Up a Kubernetes Cluster on AKS
If you use the Azure Cloud Shell, kubectl is already installed. You can also install it locally by using the az aks install-cli...
Read more >
Install Tools
The Kubernetes command-line tool, kubectl, allows you to run commands against Kubernetes clusters. You can use kubectl to deploy ...
Read more >
azure-cli-acs 2.4.4
az aks get-credentials will now call new apis to get cluster credential. 2.3.0. az acs/aks install-cli will install to under %USERPROFILE%.azure ...
Read more >
Install CLI and Keptn
Make sure you are logged in to your Azure account with az login. Create AKS cluster. Master version: 1.20.x (tested version: v1.20.7 );...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found