记 k8s helm 权限认证失败解决
主要思路:重建权限,清除已有helm缓存和配置文件,重建权限,重建helm pod1.Delete the Service Accountkubectl delete serviceaccount --namespace kube-system tiller2.Delete the cluster role bindingkubectl delete clusterrolebinding till
·
主要思路:重建权限,清除已有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
更多推荐
已为社区贡献2条内容
所有评论(0)