Bird
0
0

In a Kubernetes pod, if the readiness probe fails sporadically but the liveness probe consistently succeeds, what will Kubernetes do regarding traffic routing and container restarts?

hard📝 Workflow Q9 of 15
Kubernetes - Health Checks and Probes
In a Kubernetes pod, if the readiness probe fails sporadically but the liveness probe consistently succeeds, what will Kubernetes do regarding traffic routing and container restarts?
AKeep routing traffic to the pod regardless of readiness probe status
BRestart the container immediately upon readiness probe failure
CRemove the pod from service endpoints temporarily without restarting the container
DRestart the container only if both readiness and liveness probes fail
Step-by-Step Solution
Solution:
  1. Step 1: Understand readiness probe role

    The readiness probe determines if a pod is ready to receive traffic. If it fails, Kubernetes removes the pod from service endpoints.
  2. Step 2: Understand liveness probe role

    The liveness probe checks if the container is alive. If it passes, Kubernetes does not restart the container.
  3. Final Answer:

    Remove the pod from service endpoints temporarily without restarting the container -> Option C
  4. Quick Check:

    Readiness failure affects traffic, not restarts [OK]
Quick Trick: Readiness failure stops traffic, liveness failure triggers restart [OK]
Common Mistakes:
  • Assuming readiness probe failure causes container restart
  • Confusing readiness and liveness probe purposes
  • Believing traffic continues despite readiness probe failure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes