How to "rollout" Kubernetes Deployment to a previous revision using "rollingUpdate" strategy?

4/6/2016

I'm using K8s Deployment API. When applying update I use RollingUpdate strategy and works perfectly.

However when I do "rollout undo", k8s kills all of the pods and create new ones, i.e. the rollback is disruptive.

Is there a way to configure "rollout undo" to use a RollingUpdate (to previous version) as well?

-- worroc
kubernetes

1 Answer

4/6/2016

Rollback should use the same strategy you specified (i.e. RollingUpdate). The behavior you saw isn't expected. Can you provide the configuration (yaml/json) of your Deployment?

-- janetkuo
Source: StackOverflow