两种方案:
解决办法
方法一,卸载重装
helm uninstall <release name> -n <namespace>
方法二,回滚
This error can happen for few reasons, but it most commonly occurs when there is an interruption during the upgrade/install process as you already mentioned.
发生此错误的原因有很多,但最常见的原因是升级/安装过程中出现中断,正如您之前提到的。
To fix this one may need to, first rollback to another version, then reinstall or helm upgrade again.
要修复这个问题,可能需要先回滚到另一个版本,然后重新安装或再次进行 helm upgrade。
_Try below command to list
尝试以下命令列出_
helm ls --namespace <namespace>
but you may note that when running that command ,it may not show any columns with information
但你可能会注意到,运行该命令时,它可能不会显示任何包含信息的列
_Try to check the history of the previous deployment
尝试检查上次部署的历史记录_
helm history <release> --namespace <namespace>
This provides with information mostly like the original installation was never completed successfully and is pending state something like STATUS: pending-upgrade state.
这提供的信息大多类似于原始安装从未成功完成并且处于待处理状态,例如状态:待处理升级状态。
_To escape from this state, use the rollback command:
要退出此状态,请使用 rollback 命令:_
helm rollback <release> <revision> --namespace <namespace>
revision is optional, but you should try to provide it.
修订是可选的,但您应该尝试提供它。
You may then try to issue your original command again to upgrade or reinstall.
然后您可以尝试再次发出原始命令来升级或重新安装。