Closed d-mankowski-synerise closed 1 year ago
Thank you for opening this issue, we will look into it.
@d-mankowski-synerise Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.
@d-mankowski-synerise Please follow the below steps and check if that helps:
curl -LO "https://dl.k8s.io/release/v1.27.1/bin/darwin/arm64/kubectl"
chmod +x ./kubectl
Move the kubectl binary to a file location on your system PATH.
sudo mv ./kubectl /usr/local/bin/kubectl
sudo chown root: /usr/local/bin/kubectl
Note: Make sure /usr/local/bin is in your PATH environment variable.
Test to ensure the version you installed is up-to-date:
kubectl version --client --output=yaml
The kubectl
version that I am using is the latest one installed via homebrew; following the steps you posted did not help:
❯ which kubectl
/usr/local/bin/kubectl
~
❯ kubectl version --client --output=yaml
Alias tip: k version --client --output=yaml
clientVersion:
buildDate: "2023-04-14T13:21:19Z"
compiler: gc
gitCommit: 4c9411232e10168d7b050c49a1b59f6df9d7ea4b
gitTreeState: clean
gitVersion: v1.27.1
goVersion: go1.20.3
major: "1"
minor: "27"
platform: darwin/arm64
kustomizeVersion: v5.0.1
~
❯ az aks install-cli
Unsupported architecture: 'arm64'. Currently only supports downloading the binary of arm64/amd64 architecture for linux/darwin/windows platform, please download the corresponding binary for other platforms or architectures by yourself
@FumingZhang Is this a known issue for MacBook Pro 2021 M1 ( Darwin/arm64 ) ?
Didn't expect platform.machine()
would return "arm64", will fix this in next cli release.
@FumingZhang what's the workaround until the fix is released?
@sumit-anantwar I installed kubelogin by using https://azure.github.io/kubelogin/install.html#homebrew
Hey @sumit-anantwar, please follow these steps to install kubectl as a workaround
@d-mankowski-synerise Please follow the below steps and check if that helps:
- Run the below command:
curl -LO "https://dl.k8s.io/release/v1.27.1/bin/darwin/arm64/kubectl"
- Make the kubectl binary executable.
chmod +x ./kubectl
- Move the kubectl binary to a file location on your system PATH.
sudo mv ./kubectl /usr/local/bin/kubectl sudo chown root: /usr/local/bin/kubectl
Note: Make sure /usr/local/bin is in your PATH environment variable.
- Test to ensure the version you installed is up-to-date:
kubectl version --client --output=yaml
For kubelogin, may choose appropriate binary from release page
If you enter the az aks install-cli command, the same error appears. Did you fixed it?
Hey @julyfirst, which version of azure-cli are you using? Could check via az version
. The above change is added to 2.49.0
@FumingZhang I'm using the 2.48.1 version. As you said, I changed to 2.49.0, so it was resolved. Thank you.
Although this problem is similar to https://github.com/Azure/azure-cli/issues/26292, I believe it requires a new issue report
Related command
az aks install-cli
Describe the bug I am unable to install
aks install-cli
needed bykubelogin
on MacBook Pro 2021 M1.To Reproduce Execute
az aks install-cli
Expected behavior Installation works fine on Darwin/arm64
Environment summary
Installation via Homebrew works fine