To monitor the progress of a deployment rollout in Kubernetes, which kubectl command should you use?

Study for the Kubernetes Certified Network Administrator Exam. Our test offers comprehensive flashcards, multiple-choice questions, and detailed explanations. Be confident for your exam!

Multiple Choice

To monitor the progress of a deployment rollout in Kubernetes, which kubectl command should you use?

Explanation:
Monitoring a Deployment’s rollout progress is best done with the rollout status command for that Deployment. It watches the rollout and reports real-time progress, showing how many replicas have been updated, how many are available, and when the rollout completes. You can let it run until the update finishes (or times out if you set a timeout), which gives you a precise picture of the rollout lifecycle. Other options don’t provide the same ongoing progress view. Applying a manifest updates the configuration but doesn’t report how far the rollout has progressed. Getting pods shows the current pod objects, but it doesn’t indicate how far the deployment is from completion. Describing the deployment reveals status fields like updatedReplicas and availableReplicas, which are useful for a snapshot, but it isn’t a live, continuous monitor of the rollout progresso.

Monitoring a Deployment’s rollout progress is best done with the rollout status command for that Deployment. It watches the rollout and reports real-time progress, showing how many replicas have been updated, how many are available, and when the rollout completes. You can let it run until the update finishes (or times out if you set a timeout), which gives you a precise picture of the rollout lifecycle.

Other options don’t provide the same ongoing progress view. Applying a manifest updates the configuration but doesn’t report how far the rollout has progressed. Getting pods shows the current pod objects, but it doesn’t indicate how far the deployment is from completion. Describing the deployment reveals status fields like updatedReplicas and availableReplicas, which are useful for a snapshot, but it isn’t a live, continuous monitor of the rollout progresso.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy