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.linuxprobe.com/helm-common-commands.html