zoukankan      html  css  js  c++  java
  • 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"}
    
  • 相关阅读:
    实验报告2
    实验三 网络欺骗技术
    实验3
    心理魔术
    实验报告
    实验4
    实验5
    实验四恶意代码
    网络对抗技术 实验一
    实验二
  • 原文地址:https://www.cnblogs.com/keep-live/p/11504917.html
Copyright © 2011-2022 走看看