configmaps is forbidden: User “system:serviceaccount:kube-system:default“ cannot list resource “con
helmlist时报错lynx@n149-136-019:~/magellan_docker/magellan_k8s/k8s_dev/k8s_jhub$ helm listError: configmaps is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "configmaps
·
helm list时报错
lynx@n149-136-019:~/magellan_docker/magellan_k8s/k8s_dev/k8s_jhub$ helm list
Error: configmaps is forbidden: User "system:serviceaccount:kube-system:default" cannot list resource "configmaps" in API group "" in the namespace "kube-system"
soulution
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
helm init --service-account tiller --upgrade
参考:
参考链接
更多推荐
已为社区贡献8条内容
所有评论(0)