Bird
0
0

A container's liveness probe uses HTTP GET on /status but the container never restarts even when the endpoint returns 500 errors. What is the most probable misconfiguration?

medium📝 Troubleshoot Q7 of 15
Kubernetes - Health Checks and Probes
A container's liveness probe uses HTTP GET on /status but the container never restarts even when the endpoint returns 500 errors. What is the most probable misconfiguration?
AThe probe's failureThreshold is too high
BThe HTTP status codes considered failure are not configured, so 500 is treated as success
CThe successThreshold is set to a value greater than 1
DThe initialDelaySeconds is too short
Step-by-Step Solution
Solution:
  1. Step 1: Understand HTTP probe success criteria

    By default, HTTP status codes 200-399 are success; 500 is failure and should increment failure count toward restart.
  2. Step 2: Identify misconfiguration

    If the container never restarts despite repeated 500s, the failureThreshold is most likely set too high, preventing it from reaching the restart threshold.
  3. Final Answer:

    The probe's failureThreshold is too high -> Option A
  4. Quick Check:

    failureThreshold determines consecutive failures before restart [OK]
Quick Trick: High failureThreshold prevents quick restarts on probe failures [OK]
Common Mistakes:
  • Overlooking a high failureThreshold value
  • Misconfiguring probe path/port to not hit the endpoint
  • Confusing successThreshold (for recovery) with failureThreshold

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes