helm常用命令


常用命令

# 自定义chart
helm create helloworld

# 发版
# --kubeconfig:指定证书路径, helloworld:chart名称, /root/helloworld:chart路径
helm --kubeconfig /root/.kube/config upgrade -i --namespace=main --set replicaCount=1 helloworld /root/helloworld

# 回滚
# -n:命名空间, history:展示历史版本
helm -n main history helloworld

# 卸载自定义chart
# -n:命名空间,helloworld:chart名称
helm -n dev uninstall helloworld