Bird
0
0

You run kubectl get deployment myapp and see:

medium📝 Command Output Q4 of 15
Kubernetes - ReplicaSets and Deployments
You run kubectl get deployment myapp and see:
DESIRED=3, CURRENT=3, UP-TO-DATE=2, AVAILABLE=2
What does this mean about the actual replicas?
ADeployment is paused with 2 Pods running
BOnly 2 Pods exist, 3 are desired
C3 Pods are running and all are updated
D3 Pods are running, but only 2 are updated and ready
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the output fields

    Desired=3 means 3 Pods are planned. Current=3 means 3 Pods exist. Up-to-date=2 means 2 Pods have the latest version.
  2. Step 2: Understand available Pods

    Available=2 means 2 Pods are ready to serve traffic. So, 3 Pods run but only 2 are updated and ready.
  3. Final Answer:

    3 Pods are running, but only 2 are updated and ready -> Option D
  4. Quick Check:

    Current = running Pods, Up-to-date & Available show readiness [OK]
Quick Trick: Current = running Pods; Up-to-date = updated Pods [OK]
Common Mistakes:
  • Assuming all current Pods are updated
  • Confusing available with desired
  • Thinking Deployment is paused without status

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes