本文介绍了helm list:无法在名称空间"kube-system"中列出配置映射.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在kubernetes 8集群上安装了头盔2.6.2. helm init
工作正常.但是当我运行helm list
时,会出现此错误.
I have installed helm 2.6.2 on the kubernetes 8 cluster. helm init
worked fine. but when I run helm list
it giving this error.
helm list
Error: configmaps is forbidden: User "system:serviceaccount:kube-system:default" cannot list configmaps in the namespace "kube-system"
如何解决此RABC错误消息?
How to fix this RABC error message?
推荐答案
这些命令一次:
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
运行,问题已解决.
这篇关于helm list:无法在名称空间"kube-system"中列出配置映射.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!