Question 180
A Kubernetes administrator recommends: Use kubectl set image deployment/api api=registry.example/api:v2 and watch kubectl rollout status. Which situation most directly calls for that operation?
Explanation
Correct Answer
This is the original issue addressed by Deployment image rollout: The Deployment controller gradually replaces old replicas while checking the progress of the rollout.
Incorrect Answers
That separate problem requires another operation: Configure a livenessProbe against a genuine local health signal and review restart thresholds. The kubelet can restart the unresponsive container rather than leaving a permanently hung process.
That separate problem requires another operation: Use kubectl rollout undo deployment/api followed by rollout status to return to the previous revision. The workload returns to the previous Pod template while the Deployment controller manages replacement replicas.
That separate problem requires another operation: Inspect the Secret keys and Pod env.valueFrom.secretKeyRef, then align the referenced key with the intended Secret entry. The container environment can be constructed once the referenced Secret key actually exists.