How do you revert a failed deployment to the previous revision?

Prepare for the Red Hat OpenShift Developer II DO288 Exam with our quizzes. Study with flashcards and multiple choice questions, each with hints and explanations. Get ready for your certification!

Multiple Choice

How do you revert a failed deployment to the previous revision?

Explanation:
Reverting a deployment to a prior revision is done with the rollout undo operation. OpenShift tracks rollout revisions for a Deployment, so you can undo the current rollout to the previous state. Running the command to revert targets the Deployment and, by default, restores the last revision (you can use a specific revision with --to-revision if needed). This approach is the proper way to roll back a failed deployment; other commands like patching or non-existent rollback options don’t perform a proper rollout rollback.

Reverting a deployment to a prior revision is done with the rollout undo operation. OpenShift tracks rollout revisions for a Deployment, so you can undo the current rollout to the previous state. Running the command to revert targets the Deployment and, by default, restores the last revision (you can use a specific revision with --to-revision if needed). This approach is the proper way to roll back a failed deployment; other commands like patching or non-existent rollback options don’t perform a proper rollout rollback.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy