生产环境离线的状况下,使用tiller前端运行仍是后端运行能够根据本身需求,若是但愿tiller能够稳定的运行,能够尝试docker跑如下,做者没有尝试不知是否会成功。可是不经过helm init
的方式搭建,这个须要访问网络。前端
各个版本的helm:https://github.com/helm/helm/releaseslinux
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
打开一个shell:(可参考https://helm.sh/docs/using_helm/#running-tiller-locally)git
[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了)github
#地址为tiller IP sed -i '$a\export 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"}