Bird
0
0

You run kubectl get deployment myapp and see:

medium📝 Command Output Q13 of 15
Kubernetes - ReplicaSets and Deployments
You run kubectl get deployment myapp and see:
DESIRED=4, CURRENT=3, UP-TO-DATE=3, AVAILABLE=3
What does this mean?
AOne pod has crashed and won't restart
BKubernetes is still creating the 4th pod
CAll pods are running as expected
DDeployment is scaled down to 3 pods
Step-by-Step Solution
Solution:
  1. Step 1: Compare desired and current replicas

    Desired is 4 but current is 3, so Kubernetes aims for 4 pods but only 3 are running now.
  2. Step 2: Interpret the status fields

    Up-to-date and available are 3, meaning 3 pods are ready and updated; the 4th pod is likely starting.
  3. Final Answer:

    Kubernetes is still creating the 4th pod -> Option B
  4. Quick Check:

    Desired > Current means pods are still launching [OK]
Quick Trick: Desired > Current means pods are starting or recovering [OK]
Common Mistakes:
  • Assuming pods crashed without checking events
  • Thinking deployment scaled down when desired is higher
  • Confusing available with desired replicas

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes