Bird
0
0

Find the mistake in this liveness probe configuration: livenessProbe: httpGet: path: /live port: 8080 timeoutSeconds: -1 periodSeconds: 10

medium📝 Debug Q7 of 15
Kubernetes - Health Checks and Probes
Find the mistake in this liveness probe configuration: livenessProbe: httpGet: path: /live port: 8080 timeoutSeconds: -1 periodSeconds: 10
AperiodSeconds must be less than 5
BtimeoutSeconds cannot be negative
Cpath must be /livecheck
DhttpGet requires a host field
Step-by-Step Solution
Solution:
  1. Step 1: Validate timeoutSeconds value

    timeoutSeconds must be a positive integer; negative values are invalid.
  2. Step 2: Check other fields

    Path /live is valid, periodSeconds 10 is allowed, and host is optional.
  3. Final Answer:

    timeoutSeconds cannot be negative -> Option B
  4. Quick Check:

    timeoutSeconds must be positive [OK]
Quick Trick: timeoutSeconds must be positive integer [OK]
Common Mistakes:
  • Assuming path must be /livecheck
  • Thinking periodSeconds must be less than 5
  • Believing host is required in httpGet

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes