Helm安裝異常解決方案


問題1:helm version正常 helm list 異常報錯如下

解決方法:

 1 [root@MASTER1 ~]# helm init --service-account tiller --tiller-image majpmajp/tiller:v2.9.1 --upgrade
 2 $HELM_HOME has been configured at /root/.helm.
 3 
 4 Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.
 5 
 6 Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.
 7 For more information on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation
 8 Happy Helming!
 9 [root@MASTER1 ~]# kubectl create serviceaccount --namespace kube-system tiller
10 serviceaccount "tiller" created
11 [root@MASTER1 ~]# kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
12 clusterrolebinding "tiller-cluster-rule" created
13 [root@MASTER1 ~]# kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'

問題2:helm version 異常,只顯示helm client

1 [root@MASTER1 ~]# helm version
2 
3 Client: &version.Version{SemVer:"v2.9.1", GitCommit:"20adb27c7c5868466912eebdf6664e7390ebe710", GitTreeState:"clean"}

解決方法:

1 server沒有安裝成功,tiller需要訪問國外網站,這里是下載后,放到國內倉庫中了
2 
3 helm init --service-account tiller --tiller-image majpmajp/tiller:v2.9.1 --upgrade

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM