Tiller的删除(之前是作为Pod去部署的)
helm delete -> helm uninstall
helm inspect -> helm show
helm fetch -> helm pull
helm repo add stable http://mirror.azure.cn/kubernetes/charts
helm repo add aliyun https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
helm repo update
helm repo list
helm search repo mysql
helm search repo aliyun mysql
helm repo remove aliyun
helm search repo
helm search repo mysql
helm show chart stable/mysql
helm show values stable/mysql
helm install db stable/mysql
helm status db
--values(或-f):指定带有覆盖的YAML文件,可以多次指定。最右边的文件优先
helm show values stable/mysql > config.yaml
修改config.yaml配置文件即可
--set:在命令行上指定替代,如果两者都用,--set优先级高
helm install db --set persistence.storageClass="managed-nfs-storage" stable/mysql
直接修改模板文件
helm pull stable/mysql
helm pull stable/mysql --untar
.
├── charts
├── Chart.yaml
├── templates
│?? ├── deployment.yaml
│?? ├── _helpers.tpl
│?? ├── hpa.yaml
│?? ├── ingress.yaml
│?? ├── NOTES.txt
│?? ├── serviceaccount.yaml
│?? ├── service.yaml
│?? └── tests
│?? └── test-connection.yaml
└── values.yaml
# 获取渲染后的内容
helm get manifest hello
# helm版本回滚
# 上个版本
helm rollback hello
# 指定版本
helm rollback hello 1
# 打包
helm package examplechart
# 卸载
helm uninstall hello
原文:https://www.cnblogs.com/wangruixing/p/12956625.html