Helm 常用命令速查

常用命令

helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm search repo nginx
helm show values bitnami/nginx > values.yaml
helm install web bitnami/nginx -n demo --create-namespace -f values.yaml
helm upgrade web bitnami/nginx -n demo -f values.yaml
helm rollback web 1 -n demo
helm uninstall web -n demo

查看状态和排查:

helm list -A
helm status web -n demo
helm history web -n demo
helm get values web -n demo
helm get manifest web -n demo
helm template web bitnami/nginx -f values.yaml
helm lint ./chart
helm diff upgrade web bitnami/nginx -f values.yaml

场景速查

场景 命令
查看可用版本 helm search repo nginx --versions
只渲染不安装 helm template
对比升级差异 helm diff upgrade(插件)
回滚到上一版 helm rollback <release> 0
导出当前 values helm get values <release>
检查 chart 语法 helm lint
打包 chart helm package ./chart
推送到 OCI 仓库 helm push chart.tgz oci://registry/repo

易错点

相关命令