主要思路:重建权限,清除已有helm缓存和配置文件,重建权限,重建helm pod

1.Delete the Service Account

kubectl delete serviceaccount --namespace kube-system tiller

 

2.Delete the cluster role binding

kubectl delete clusterrolebinding tiller-cluster-rule 

 3.Remove helm directory

rm -rf ~/.helm/

4.Create the Service account again.

kubectl create serviceaccount tiller --namespace kube-system

5.Create the cluster role binding

kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller

 6.run helm init command 

helm init --client-only --stable-repo-url http://mirror.azure.cn/kubernetes/charts/

7.Delete the tiller-deploy-xxx pod

 

再次尝试一下

repo list

repo install xxx

 

 

 

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐