helm生产环境离线安装

1.安装helm

生产环境离线的情况下,使用tiller前端运行还是后端运行可以根据自己需求,如果希望tiller可以稳定的运行,可以尝试docker跑以下,作者没有尝试不知是否会成功。但是不通过helm init的方式搭建,这个需要访问网络。

1.1.安装helm客户端

各个版本的helm:https://github.com/helm/helm/releases

wget https://get.helm.sh/helm-v2.14.3-linux-amd64.tar.gz

tar -zxvf helm-v2.14.3-linux-amd64.tar.gz

mv linux-amd64/{helm,tiller} /usr/local/bin/

chmod +x /usr/local/bin/helm

helm version

1.2.安装helm tiller(server)端

打开一个shell:(可参考https://helm.sh/docs/using_helm/#running-tiller-locally

[root@k8s1-master1 linux-amd64]# tiller 
[main] 2019/09/09 15:16:28 Starting Tiller v2.14.3 (tls=false)
[main] 2019/09/09 15:16:28 GRPC listening on :44134
[main] 2019/09/09 15:16:28 Probes listening on :44135
[main] 2019/09/09 15:16:28 Storage driver is ConfigMap
[main] 2019/09/09 15:16:28 Max history per release is 0
[storage] 2019/09/09 15:18:35 listing all releases with filter

打开另一个shell:(当然也可以nohup tiller &让进程后段运行,就不用另起shell了)

#地址为tiller IP
sed -i '$aexport HELM_HOST=localhost:44134' /etc/profile

#成功
[root@k8s1-master1 ~]# helm version
Client: &version.Version{SemVer:"v2.14.3", GitCommit:"0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.14.3", GitCommit:"0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085", GitTreeState:"clean"}
原文地址:https://www.cnblogs.com/keep-live/p/11504917.html