我正在尝试跑步 az aks install-cli 但我看到一条错误消息
I'm trying to run az aks install-cli but I get an error that says
Downloading client to "/usr/local/bin/kubectl" from "storage.googleapis/kubernetes-release/release/v1.14.0/bin/linux/amd64/kubectl" Connection error while attempting to download client ([Errno 13] Permission denied: '/usr/local/bin/kubectl')如果我使用sudo,我会得到:
If I use sudo I get:
bash: sudo: command not found除了使用sudo之外,不确定如何提升权限
Not sure how to elevate permissions other than using sudo
推荐答案如果使用Azure Cloud Shell,则不需要为AKS安装kubectl,这是其中安装的默认工具.请参见 Azure Cloud Shell中安装的所有默认工具 .
You do not need to install the kubectl for AKS if you use the Azure Cloud Shell, that's a default tool installed in it. See all the default tools installed in Azure Cloud Shell.
因此,如果要在Azure Cloud Shell中安装工具,应查看一下列表.
So you should take a look at the list if you want to install a tool in the Azure Cloud Shell.
并且将权限设置为没有sudo访问权限的普通用户. $Home目录之外的任何安装都不会保留.因此,您无法在其中执行sudo命令.
And permissions are set as regular users without sudo access. Any installation outside your $Home directory is not persisted. So you cannot execute the sudo command in it.
更多推荐
Azure CLI Aks安装CLI权限被拒绝并且sudo不起作用
发布评论