当前位置: 首页 > Linux

使用脚本在Linux服务器上自动安装Kubernetes的包管理器Helm

时间:2023-04-06 01:46:39 Linux

Helm之于Kubernetes就像yum之于RedHatEnterpriseLinux,或者apt-get之于Ubuntu。Helm由helmCLI和Tiller组成,是一个典型的Client/Server应用程序。helm运行在客户端,提供命令行界面;Tiller应用程序在Kubernetes中运行。Jerry之前的文章[](https://www.toutiao.com/i6593...中解压后将执行文件复制到环境变量的做法其实还有另一种全自动的方法,使用安装脚本1、自动下载安装脚本curlhttps://raw.githubusercontent...>get_helm.sh打开脚本,可以看到helm安装的环境变量HELM_INSTALL_DIR为/usr/local/bin:2.chmod700get_helm.sh./get_helm.sh:3.执行helminit,看到HappyHelming提示,说明安装成功。创建/root/.helm创建/root/.helm/repository创建/root/.helm/repository/cache创建/root/.helm/repository/local创建/root/.helm/plugins创建/root/.helm/starters创建/root/.helm/cache/archiveCreating/root/.helm/repository/repositories.yamlAddingstablerepowithURL:https://kubernetes-charts.sto...添加本地repowithURL:http://127.0.0.1:8879/charts$HELM_HOME已配置在/root/.helm。Tiller(Helm服务器端组件)已安装到您的Kubernetes集群中。请注意:默认情况下,Tiller部署有不安全的“允许未经身份验证的用户”策略。为了防止这种情况,使用--tiller-tls-verify标志运行helminit。有关保护安装的更多信息,请参阅:https://docs.helm.sh/using_he...HappyHelming!要获取更多Jerry的原创文章,请注意公众号"汪子熙":