Bird
0
0

Given this probe configuration snippet in a pod spec:

medium📝 Command Output Q13 of 15
Kubernetes - Health Checks and Probes
Given this probe configuration snippet in a pod spec:
livenessProbe:
  httpGet:
    path: /status
    port: 8080
  initialDelaySeconds: 10
  periodSeconds: 5
What will Kubernetes do after the pod starts?
ASend an HTTP GET to /status only once after 10 seconds
BSend an HTTP GET to /status immediately, then every 10 seconds
CWait 5 seconds, then send an HTTP GET to /status every 10 seconds
DWait 10 seconds, then send an HTTP GET to /status every 5 seconds
Step-by-Step Solution
Solution:
  1. Step 1: Understand initialDelaySeconds

    This value tells Kubernetes to wait 10 seconds after pod start before first probe.
  2. Step 2: Understand periodSeconds

    This value sets the interval between probes, here every 5 seconds.
  3. Final Answer:

    Wait 10 seconds, then send an HTTP GET to /status every 5 seconds -> Option D
  4. Quick Check:

    initialDelaySeconds = wait, periodSeconds = repeat interval [OK]
Quick Trick: initialDelaySeconds = wait before first probe, periodSeconds = probe interval [OK]
Common Mistakes:
  • Confusing initialDelaySeconds with periodSeconds
  • Assuming immediate probe on pod start
  • Mixing up timing values

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes