Container Service: Deploying an Application - Rolling Back to a Previous Version


OpenShift Deployments Documentation

Rolling Back

Teams may wish to roll back to a previous version of a deployed application in cases where the current version has incorrectable errors. Instructions for how to do that are here. The key command is:

$ oc rollout undo dc/<name>

Re-enabling Triggers

When rolling back from the GUI or command-line, deployment triggers are automatically disabled. This means that your next build will not trigger a new deployment until triggers are re-enabled. Read more about this here.

To re-enable the triggers use the following commands once logged into your project:

$ oc deploy <name of deployment configuration> --enable-triggers

Last Updated: 
Tuesday, April 27, 2021