How do you pause a rollout, make multiple changes, and resume it?
BeginnerScenarioDeployments and rollouts
Answer
Situation read → You need to change the image, env vars and resources together without triggering three rollouts.
What I'd do →
kubectl rollout pause deploy/web- Apply
kubectl set image,kubectl set env,kubectl set resources - Confirm no new ReplicaSet was created with
kubectl get rs kubectl rollout resume deploy/web- Watch
kubectl rollout status deploy/web
Why → Pausing stops the controller from reconciling template changes, so all edits land in a single revision.
Interview tip → In GitOps you would simply commit one change, but pause is useful during manual incident work.
More on Deployments and rollouts
You applied a new image tag and the rollout seems stuck at "1 out of 3 new replicas have been updated". What do you check first?BeginnerHow do you roll back a bad release and verify you are back on the previous version?BeginnerA rollout must never reduce capacity below current replicas. How do you configure the strategy?IntermediateYou need a blue/green deployment without a service mesh. How do you do it with plain Kubernetes?IntermediateHow would you do a canary release with only Deployments and a Service?IntermediateWhat is the difference between Recreate and RollingUpdate strategies and when would you pick Recreate?Beginner