Bird
0
0

You ran 'kubectl apply -f deployment.yaml' but the deployment did not update. What could be wrong?

medium📝 Troubleshoot Q7 of 15
Kubernetes - Fundamentals
You ran 'kubectl apply -f deployment.yaml' but the deployment did not update. What could be wrong?
AThe deployment is already deleted
BThe YAML file has syntax errors
CYou used the wrong command
DThe cluster is offline
Step-by-Step Solution
Solution:
  1. Step 1: Check YAML file correctness

    If the YAML file has syntax errors, Kubernetes will not apply changes.
  2. Step 2: Verify command usage

    'kubectl apply -f' is correct for applying YAML files.
  3. Final Answer:

    The YAML file has syntax errors -> Option B
  4. Quick Check:

    Deployment update fails = YAML syntax error [OK]
Quick Trick: Validate YAML files before applying [OK]
Common Mistakes:
  • Assuming cluster offline without checking
  • Using wrong command syntax
  • Thinking deployment deleted means no update

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes