Bird
0
0

Given this readiness probe config, what happens if the probe fails repeatedly? readinessProbe: httpGet: path: /ready port: 8080 failureThreshold: 3 periodSeconds: 5

medium📝 Predict Output Q4 of 15
Kubernetes - Health Checks and Probes
Given this readiness probe config, what happens if the probe fails repeatedly? readinessProbe: httpGet: path: /ready port: 8080 failureThreshold: 3 periodSeconds: 5
APod is removed from service endpoints after 3 failures
BPod is restarted immediately after 1 failure
CPod is deleted from the cluster
DPod continues receiving traffic regardless
Step-by-Step Solution
Solution:
  1. Step 1: Understand failureThreshold and periodSeconds

    FailureThreshold 3 means after 3 failed checks spaced by periodSeconds (5s), action triggers.
  2. Step 2: Effect of readiness probe failure

    Pod is marked NotReady and removed from service endpoints, but not restarted or deleted.
  3. Final Answer:

    Pod is removed from service endpoints after 3 failures -> Option A
  4. Quick Check:

    Readiness failure removes pod from traffic [OK]
Quick Trick: FailureThreshold controls removal from service, not restart [OK]
Common Mistakes:
  • Thinking pod restarts on readiness failure
  • Assuming pod deletion on readiness failure
  • Ignoring failureThreshold effect

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes