广告
返回顶部
首页 > 资讯 > 操作系统 >使用脚本在Linux服务器上自动安装Kubernetes的包管理器Helm
  • 579
分享到

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

2023-06-06 01:06:24 579人浏览 薄情痞子
摘要

Helm之于kubernetes好比yum之于Red Hat Enterprise linux,或者apt-get之于ubuntu。Helm是由helm CLI和Tiller组成,是典型的Client/Server应用。helm运行于客户端

Helm之于kubernetes好比yum之于Red Hat Enterprise linux,或者apt-get之于ubuntu

Helm是由helm CLI和Tiller组成,是典型的Client/Server应用。helm运行于客户端,提供命令行界面;Tiller应用运行于Kubernetes内部。

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

在Jerry之前的文章里曾经介绍过手动下载Helm安装包,解压后把执行文件拷贝到环境变量的做法。

其实还有另外一种全自动的做法,使用安装脚本自动安装。

自动下载安装脚本

curl https://raw.GitHubusercontent.com/helm/helm/master/scripts/get > get_helm.sh

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

打开脚本,可以看到helm安装的环境变量HELM_INSTALL_DIR为/usr/local/bin:

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

chmod 700 get_helm.sh

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

./get_helm.sh:

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

执行helm init, 看到Happy Helming消息,说明安装成功。

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

Creating /root/.helm

Creating /root/.helm/repository

Creating /root/.helm/repository/cache

Creating /root/.helm/repository/local

Creating /root/.helm/plugins

Creating /root/.helm/starters

Creating /root/.helm/cache/arcHive

Creating /root/.helm/repository/repositories.yaml

Adding stable repo with URL: Https://kubernetes-charts.storage.Googleapis.com

Adding local repo with URL: http://127.0.0.1:8879/charts

$HELM_HOME has been configured at /root/.helm.

Tiller (the Helm server-side component) has been installed into your Kubernetes Cluster.

Please note: by default, Tiller is deployed with an insecure 'allow unauthenticated users' policy.

To prevent this, run helm init with the --tiller-tls-verify flag.

For more infORMation on securing your installation see: https://docs.helm.sh/using_helm/#securing-your-helm-installation

Happy Helming!

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

--结束END--

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

本文链接: https://www.lsjlt.com/news/245457.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作