Helm rollback to previous release

跟風遠走 提交于 2020-05-09 20:32:13

问题


I am looking for a way to rollback a helm release to its previous release without specifying the target release version as a number.

Something like helm rollback <RELEASE> ~1 (like git reset HEAD~1) would be nice.


回答1:


As it turns out, there is an undocumented option to rollback to the last successful release by defining the target release version as 0. like: helm rollback <RELEASE> 0

Source: https://github.com/helm/helm/issues/1796




回答2:


If you just want to rollback to the previous release, you can do

helm rollback <RELEASE> 0



回答3:


Using Helm

helm rollback release-name 0

Using kubectl

kubectl rollout undo deployment/deployment-name

or

kubectl rollout undo deployment/deployment-name --to-revision=0



来源:https://stackoverflow.com/questions/51894307/helm-rollback-to-previous-release

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!