导读 Helm 帮助您管理 Kubernetes 应用——Helm 图表,即使是最复杂的 Kubernetes 应用程序,都可以帮助您定义,安装和升级。

helm管理命令

查看版本

#helm version

增加repo

#helm repo add stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
#helm repo add --username admin --password password myharbor https://harbor.qing.cn/chartrepo/charts

更新repo仓库资源

#helm repo update
charts管理

查看当前安装的charts

#helm list

将helm search hub显示所有可用图表。

#helm search hub redis

使用helm search repo,您可以在已添加的存储库中找到charts的名称:

#helm search repo redis

打印出指定的Charts的详细信息

#helm show chart stable/redis

下载charts到本地

#helm fetch redis

安装charts

#helm install redis stable/redis

查看charts状态

#helm status redis

删除charts

#helm uninstall redis
自定义charts

创建charts

#helm create helm_charts

检查chart语法正确性

# helm lint myapp

打包自定义的chart

# helm package myapp

查看生成的yaml文件

#helm template myapp-1.tgz

使用默认chart部署到k8s

helm install myapp myapp-1.tgz

使用包去做release部署

helm install --name example2 helm-chart-0.1.0.tgz --set service.type=NodePort
更新与回滚

查看当前chart信息

#helm list

更新images

#helm upgrade myapp myapp-2.tgz

查看版本信息

#helm history myapp

回滚指定版本

#helm rollback myapp 1

原文来自:https://www.cuiliangblog.cn/blog/show-111/

本文地址:https://www.linuxprobe.com/helm-common-commands.html编辑:xiangping wu,审核员:逄增宝

Linux命令大全:https://www.linuxcool.com/

Linux系统大全:https://www.linuxdown.com/

红帽认证RHCE考试心得:https://www.rhce.net/