K8s安装Helm 注:charts仓库如果用google的必须设置代理(比如squid),不需要的话可以用阿里的charts仓库 1、下载helm Helm命令下载地址:https://github.com/helm/helm/releases 链接:https://pan.baidu.com/s/15Je7HwUZ9u0JLo6PLNpUsw 提取码:qah9 Helm所需镜像包地址 链接:https://pan.baidu.com/s/1xtrD1rOGFjNgHcg6SKrDFw 提取码:iymn #tar -zxvf helm-v2.10.0-linux-amd64.tar.gz #cd linux-amd64/ #mv helm /usr/bin/ 2、创建tiller权限
#kubectl create serviceaccount --namespace kube-system tiller #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"}}}}' 3、设置charts仓库代理(看需求不需要×××的可以配置阿里云的charts仓库(版本比较旧)) #export HTTPS_PROXY='代理地址' #export NO_PROXY='172.168.1.0/24,127.0.0.0/8' 4、Helm初始化 #helm init 5、查看版本 #helm version