Bird
0
0

You tried kubectl apply -f deployment.yaml but the deployment did not update. What could be the reason?

medium📝 Troubleshoot Q7 of 15
Kubernetes - kubectl Essential Commands
You tried kubectl apply -f deployment.yaml but the deployment did not update. What could be the reason?
AYou used <code>kubectl create</code> instead of apply
BThe manifest file has no changes compared to the cluster
CThe deployment is deleted automatically
DThe cluster is offline
Step-by-Step Solution
Solution:
  1. Step 1: Understand apply behavior

    Apply only updates if manifest differs from current resource.
  2. Step 2: Analyze no update case

    If manifest matches cluster state, no update occurs.
  3. Final Answer:

    The manifest file has no changes compared to the cluster -> Option B
  4. Quick Check:

    Apply updates only if changes exist = A [OK]
Quick Trick: Apply updates only when manifest differs from cluster state [OK]
Common Mistakes:
  • Assuming apply always forces update
  • Confusing create with apply
  • Ignoring cluster connectivity

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes