码迷,mamicode.com
首页 > 其他好文 > 详细

helm安装异常解决方案

时间:2019-10-28 12:56:45      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:ice   异常解决   for   idt   span   version   format   ade   The   

问题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

 

helm安装异常解决方案

标签:ice   异常解决   for   idt   span   version   format   ade   The   

原文地址:https://www.cnblogs.com/Mark-Yi/p/11751288.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!