Which command checks the status of a deployment rollout progress in OpenShift?

Prepare for the Red Hat Openshift Developer EX288 Exam. Study with comprehensive quizzes and flashcards. Each question includes hints and explanations to enhance your understanding. Ace your exam with confidence!

Multiple Choice

Which command checks the status of a deployment rollout progress in OpenShift?

Explanation:
Tracking how a deployment is progressing hinges on querying the rollout status of the Deployment resource. The command that reports and can actively wait for the rollout to finish is oc rollout status for the specific deployment. It shows where you are in the rollout, such as how many replicas are updated, how many are available, and whether the rollout has completed or encountered issues. If you add -w, it streams updates until the rollout finishes, making it ideal for monitoring a deployment as it happens. Other commands serve different purposes and don’t focus on the rollout progress. oc logs pulls the logs from running pods, not the deployment’s rollout state. oc status provides a broad, high-level view of your project and resources rather than the step-by-step rollout progress. oc get deploy simply fetches the Deployment object and its current fields, which may show the status at a moment in time but doesn’t interpret the rollout flow or provide live updates. As a concrete example, you’d run a command like: oc rollout status deployment/frontend -w. This will report the current rollout status and keep printing updates until the new version is fully rolled out.

Tracking how a deployment is progressing hinges on querying the rollout status of the Deployment resource. The command that reports and can actively wait for the rollout to finish is oc rollout status for the specific deployment. It shows where you are in the rollout, such as how many replicas are updated, how many are available, and whether the rollout has completed or encountered issues. If you add -w, it streams updates until the rollout finishes, making it ideal for monitoring a deployment as it happens.

Other commands serve different purposes and don’t focus on the rollout progress. oc logs pulls the logs from running pods, not the deployment’s rollout state. oc status provides a broad, high-level view of your project and resources rather than the step-by-step rollout progress. oc get deploy simply fetches the Deployment object and its current fields, which may show the status at a moment in time but doesn’t interpret the rollout flow or provide live updates.

As a concrete example, you’d run a command like: oc rollout status deployment/frontend -w. This will report the current rollout status and keep printing updates until the new version is fully rolled out.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy