【发布时间】:2018-10-22 10:07:18
【问题描述】:
我在 AKS 上部署了 Kubernetes 1.8.7 集群。我正在尝试使用帮助(helm install stable/nginx-ingress --namespace kube-system)安装 NGINX 入口控制器。我使用 helm init --service-account default 初始化 helm。 我收到以下错误
错误:发布 my-release 失败:clusterroles.rbac.authorization.k8s.io "my-release-nginx-ingress" 被禁止:尝试授予额外权限:[PolicyRule{Resources:["configmaps"], APIGroups :[""],动词:["list"]} PolicyRule{资源:["configmaps"],APIGroups:[""],动词:["watch"]} PolicyRule{资源:["endpoints"],APIGroups :[""],动词:["list"]} PolicyRule{资源:["endpoints"],APIGroups:[""],动词:["watch"]} PolicyRule{资源:["nodes"],APIGroups :[""],动词:["list"]} PolicyRule{资源:["nodes"],APIGroups:[""],动词:["watch"]} PolicyRule{资源:["pods"],APIGroups :[""],动词:["list"]} PolicyRule{资源:["pods"],APIGroups:[""],动词:["watch"]} PolicyRule{资源:["secrets"],APIGroups :[""],动词:["list"]} PolicyRule{资源:["secrets"],APIGroups:[""],动词:["watch"]} PolicyRule{资源:["nodes"],APIGroups :[""],动词:["get"]} PolicyRule{资源:["services"],APIGroups:[""],动词:["get"]} PolicyRule{资源:["services"],APIGroups :[""], 维rbs:["list"]} PolicyRule{Resources:["services"], APIGroups:[""], Verbs:["update"]} PolicyRule{Resources:["services"], APIGroups:[""],动词:["watch"]} PolicyRule{Resources:["ingresses"],APIGroups:["extensions"],动词:["get"]} PolicyRule{Resources:["ingresses"],APIGroups:["extensions" ],动词:["list"]} PolicyRule{资源:["ingresses"],APIGroups:["extensions"],动词:["watch"]} PolicyRule{资源:["events"],APIGroups:[" "], 动词:["create"]} PolicyRule{Resources:["events"], APIGroups:[""], Verbs:["patch"]} PolicyRule{Resources:["ingresses/status"], APIGroups: ["extensions"],动词:["update"]}] user=&{system:serviceaccount:kube-system:default 0296ac27-555a-11e8-a9ed-cad48efa2d60 [system:serviceaccounts system:serviceaccounts:kube-system system:已认证] map[]} ownerrules=[] ruleResolutionErrors=[]
这个命令一直工作到昨天,我没有做任何更改,但今天早上它停止工作。据我了解,Aks 尚不支持 RBAC,因此创建了一个角色并映射到集群管理员是徒劳的。任何建议
【问题讨论】:
标签: azure nginx kubernetes kubernetes-ingress