Bird
0
0

You notice your Deployment's desired replicas is 5 but actual replicas stays at 3. Which is the most likely cause?

medium📝 Troubleshoot Q14 of 15
Kubernetes - ReplicaSets and Deployments
You notice your Deployment's desired replicas is 5 but actual replicas stays at 3. Which is the most likely cause?
APods are stuck in Pending state due to resource limits
BDeployment YAML has syntax errors
Ckubectl command was typed incorrectly
DActual replicas always match desired replicas instantly
Step-by-Step Solution
Solution:
  1. Step 1: Understand why actual replicas lag behind desired

    If actual replicas are less than desired, pods may be stuck starting, often due to resource constraints.
  2. Step 2: Eliminate other options

    Syntax errors prevent deployment creation, incorrect kubectl commands won't show this state, and actual replicas do not update instantly.
  3. Final Answer:

    Pods are stuck in Pending state due to resource limits -> Option A
  4. Quick Check:

    Pending pods cause actual < desired replicas [OK]
Quick Trick: Check pod status if actual replicas < desired replicas [OK]
Common Mistakes:
  • Assuming syntax errors cause replica mismatch
  • Expecting instant replica count update
  • Ignoring pod scheduling issues

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes