Bird
0
0

What is the expected behavior if a readiness probe fails for a pod in Kubernetes?

medium📝 Command Output Q5 of 15
Kubernetes - Production Best Practices
What is the expected behavior if a readiness probe fails for a pod in Kubernetes?
AThe pod is removed from service endpoints and stops receiving traffic
BThe pod is deleted immediately
CThe pod is restarted automatically
DThe pod scales up to handle more traffic
Step-by-Step Solution
Solution:
  1. Step 1: Understand readiness probe failure impact

    When readiness probe fails, Kubernetes marks the pod as not ready.
  2. Step 2: Effect on traffic routing

    Kubernetes removes the pod from service endpoints, so it stops receiving new traffic.
  3. Final Answer:

    The pod is removed from service endpoints and stops receiving traffic -> Option A
  4. Quick Check:

    Readiness failure = no traffic to pod [OK]
Quick Trick: Readiness failure removes pod from service traffic [OK]
Common Mistakes:
  • Thinking pod is deleted on readiness failure
  • Assuming pod restarts on readiness failure
  • Confusing readiness failure with scaling behavior

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes