Bird
0
0

A Deployment update is stuck and Pods are not updating. What could be a common cause?

medium📝 Troubleshoot Q7 of 15
Kubernetes - ReplicaSets and Deployments
A Deployment update is stuck and Pods are not updating. What could be a common cause?
AReplicas set to zero
BPod template labels changed causing selector mismatch
CDeployment YAML missing apiVersion
DContainer image tag is latest
Step-by-Step Solution
Solution:
  1. Step 1: Understand update mechanism

    Changing Pod template labels breaks selector match, blocking rollout.
  2. Step 2: Check other options

    Replicas zero scales down Pods, missing apiVersion causes apply error, image tag latest is valid.
  3. Final Answer:

    Pod template labels changed causing selector mismatch -> Option B
  4. Quick Check:

    Label mismatch blocks update rollout = B [OK]
Quick Trick: Keep selector and template labels consistent during updates [OK]
Common Mistakes:
  • Changing labels without updating selector
  • Confusing zero replicas with stuck update
  • Ignoring apiVersion errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes