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?
BeginnerScenarioDeployments and rollouts
Answer
Situation read → The Deployment controller created one new pod and is waiting for it to become Ready before it continues. The problem is almost always that new pod.
What I'd do →
kubectl rollout status deploy/webto confirm it is really stuckkubectl get pods -l app=weband find the pod with the newest agekubectl describe pod <new-pod>and read Events at the bottom (ImagePullBackOff, Unschedulable, failed probe)kubectl logs <new-pod> --previousif it is restarting- Fix the cause, or roll back with
kubectl rollout undo deploy/web
Why → The rolling update honours maxUnavailable and maxSurge, so a broken new pod blocks the rollout while the old pods keep serving. Nothing is down, which buys you time to debug.
Interview tip → Say that the old ReplicaSet is still serving traffic, so a stuck rollout is not an outage.
More on Deployments and rollouts
How 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?BeginnerAfter a deploy, pods are Ready but users get 502s for a few seconds. What is happening and how do you fix it?Intermediate