1、安装helm
helm和kubernetes版本对应关系可以查看
https://helm.sh/docs/topics/version_skew/
wget https://get.helm.sh/helm-v3.4.0-linux-amd64.tar.gz
tar -zxf helm-v3.4.0-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/helm
helm version
echo 'source <(helm completion bash)' >> ~/.bashrc source ~/.bashrc
helm v3 对比v2 已经不需要安装tiller,默认也是使用 ~/.kube/config 配置文件,差异如下
1)、Tiller的删除
2)、Release 不再是全局资源,而是存储在各自命名空间内
3)、Values 支持 JSON Schema校验器,自动检查所有输入的变量格式
4)、移除了用于本地临时搭建 Chart Repository 的 helm serve 命令。
5)、helm install 不再默认生成一个 Release 的名称,除非指定了 --generate-name。
6)、Helm CLI 个别更名
helm delete更名为 helm uninstall
helm inspect更名为 helm show
helm fetch更名为 helm pull
添加仓库
helm repo add aliyuncs https://apphub.aliyuncs.com
显示所有仓库
helm repo list
从仓库查询某个chart
helm search repo nginx
helm install nginx aliyuncs/nginx # 安装 helm list # 显示目前已经安装的chart/Release helm uninstall nginx # 卸载
默认chart存储目录
/root/.cache/helm/repository/
安装nginx-ingress
helm install nginx-ingress aliyuncs/nginx-ingress-controller
命令补全
source <(kubectl completion bash)
source <(helm completion bash)
未完待续......
-
在 Mac、Linux、Windows 下Go交叉编译
:下一篇 »