Kubernetes 无法列出节点或名称空间

Kubernetes 无法列出节点或名称空间,kubernetes,kubectl,azure-aks,Kubernetes,Kubectl,Azure Aks,当我尝试运行kubectl get namespace或kubectl get nodes命令等时,我收到了此错误(我使用的是Azure Kubernetes服务)。如果能在这个问题上得到任何帮助,我将不胜感激 Error from server (Forbidden): namespaces is forbidden: User "XXXXXXXXXXXXXX" cannot list namespaces at the cluster scope 这是授权模块错误消息:如和中所述,例如,您

当我尝试运行
kubectl get namespace
kubectl get nodes
命令等时,我收到了此错误(我使用的是Azure Kubernetes服务)。如果能在这个问题上得到任何帮助,我将不胜感激

Error from server (Forbidden): namespaces is forbidden: User "XXXXXXXXXXXXXX" cannot list namespaces at the cluster scope

这是授权模块错误消息:如和中所述,例如,您需要具有执行特定操作的权限(在本例中:列出名称空间和节点)

由于您没有分享关于如何设置此群集或由谁负责此群集的更多背景信息,我只能建议您联系群集管理员以授予您权限,或者,如果您自己设置了群集,请查看,这可能在此处有用