安装openebs报错

报错:

[root@k8s-node1 k8s]# helm install --namespace openebs --name openebs stable/openebs --version 1.5.0
Error: release openebs failed: namespaces "openebs" is forbidden: User "system:serviceaccount:kube-system:tiller" cannot get resource "namespaces" in API group "" in the namespace "openebs"

 

解决方案: 来自百度

执行下面两行命令:

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 install --namespace openebs --name openebs stable/openebs --version 1.5.0

success: 

 

posted @ 2022-08-12 18:55  志鸿鸣  阅读(308)  评论(0)    收藏  举报