Azure CLI Aks安装CLI权限被拒绝并且sudo不起作用

编程入门 行业动态 更新时间:2024-10-09 12:28:00
本文介绍了Azure CLI Aks安装CLI权限被拒绝并且sudo不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试跑步 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不起作用

本文发布于:2023-11-28 06:32:33,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641308.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:被拒   不起作用   权限   CLI   Azure

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!