使用脚本在Linux服务器上自动安装Kubernetes的包管理器Helm
Helm之于Kubernetes好比yum之于Red Hat Enterprise Linux,或者apt-get之于Ubuntu。
Helm是由helm CLI和Tiller组成,是典型的Client/Server应用。helm运行于客户端,提供命令行界面;Tiller应用运行于Kubernetes内部。
在Jerry之前的文章里曾经介绍过手动下载Helm安装包,解压后把执行文件拷贝到环境变量的做法。
其实还有另外一种全自动的做法,使用安装脚本自动安装。
1. 自动下载安装脚本
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get > get_helm.sh
打开脚本,可以看到helm安装的环境变量HELM_INSTALL_DIR为/usr/local/bin:
2. chmod 700 get_helm.sh
./get_helm.sh:
3. 执行helm init, 看到Happy Helming消息,说明安装成功。
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的原创文章,请关注公众号"汪子熙":
相关文章
- linux简单之美(三)
- Linux下Tomcat的启动、关闭、杀死进程
- [uart]linux uart应用层配置
- linux(centos8):kubernetes安装的准备工作
- linux文件同步之rsync学习(一)
- Linux基础之linux服务器服务器间拷贝文件
- linux(centos8):基于java13安装rocketmq-4.7.1(解决jdk不兼容的报错)
- Linux shell字符串运算
- 【一天一门编程语言】Linux 实用命令大全
- Linux命令: 替换字符串
- linux下使用mutt发送带附件的邮件
- 【Linux之shell脚本实战】统计 Linux 进程相关数量信息
- linux基本功系列之less命令实战
- Linux下CMake简明教程
- LabVIEW 在NI Linux实时设备上访问Shell
- linux 科普扫盲----同步国内镜像源比如阿里云镜像站制作企业用离线yum源
- Linux CPU性能 系统当中的不可中断进程D和僵尸进程Z
- 在Linux上以all in one模式安装kubernetes & kubesphere