Helm Deploy Error

helm 更新时的 Error 处理

故障现象

使用 helm chart 安装或者升级服务时,出现异常中断后重新运行 upgrade 就会容易(如果有chart包中的单个服务进行过rollout操作,可能也会出现相同问题,但未测试过)出现以下报错: Error: UPGRADE FAILED: another operation (install/upgrade/rollback) is in progress

故障处理

  1. 通过 helm history -n namespace chartName or kubectl get secrets -n chartNamespace 方式,查看最近一次 chart 包的升级或者安装结果
  2. 然后将其删除重新运行command或者pipeline即可。
1
2
kubectl get secret -n <namespace>
kubectl delete secret sh.helm.release.v1.<RELEASE_NAME>.v<LATEST_REVISION>

Reference

  1. kubernetes-helm-stuck-with-an-update-in-progress
  2. github helm issue
Built with Hugo
Theme Stack designed by Jimmy