Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

install aks cli #19111

Open or-etoro opened 3 years ago

or-etoro commented 3 years ago

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az aks install-cli

Errors:

Connection error while attempting to download client ([Errno 13] Permission denied: '/usr/local/bin/kubectl')

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Expected Behavior

Environment Summary

Linux-4.4.0-19041-Microsoft-x86_64-with-debian-bullseye-sid
Python 3.6.10
Installer: DEB

azure-cli 2.26.1 *

Extensions:
interactive 0.4.5

Additional Context

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.

Issue Details
### **This is autogenerated. Please review and update as needed.** ## Describe the bug **Command Name** `az aks install-cli` **Errors:** ``` Connection error while attempting to download client ([Errno 13] Permission denied: '/usr/local/bin/kubectl') ``` ## To Reproduce: Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information. - _Put any pre-requisite steps here..._ - `az aks install-cli` ## Expected Behavior ## Environment Summary ``` Linux-4.4.0-19041-Microsoft-x86_64-with-debian-bullseye-sid Python 3.6.10 Installer: DEB azure-cli 2.26.1 * Extensions: interactive 0.4.5 ``` ## Additional Context
Author: or-etoro
Assignees: -
Labels: `AKS`, `Service Attention`
Milestone: -
yonzhan commented 3 years ago

route to service team

Volatus commented 3 years ago

@or-etoro Please use the official K8s docs for installing kubectl and ideally close the ticket.

AndriyDmytrenko commented 1 year ago

Looks like the issue is abandoned. Official MS's documentation for installation of kubectl with azure-cli (https://learn.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-install-cli) says:

--install-location Path at which to install kubectl. Note: the path should contain the binary filename.

default value: ~.azure-kubectl\kubectl.exe

This path should be fine in regards of permissions, and it is not in /usr/local/bin. What is the reason of referring to official kubernetes docs of installing kubectl, if the whole topic is regarding azure-cli only?