Choose the best description of what a liveness probe does in a Kubernetes pod.
Think about what happens when a pod becomes unresponsive or stuck.
A liveness probe checks if the pod is alive and responsive. If the probe fails, Kubernetes restarts the pod to recover it.
Given a pod with a liveness probe configured, what happens if the probe fails 3 times in a row?
Consider Kubernetes behavior on failing health checks.
When a liveness probe fails the configured number of times, Kubernetes restarts the pod to try to fix the issue.
Which YAML snippet correctly configures an HTTP liveness probe on path /healthz with a 5-second initial delay?
Look for the HTTP GET probe with correct path and initial delay.
Option A correctly sets an HTTP GET liveness probe on /healthz with a 5-second initial delay and a 10-second period.
A pod configured with a liveness probe keeps restarting even though the probe command returns success. What could be a likely cause?
Think about causes of pod restarts beyond probe failures.
If the application inside the pod crashes, Kubernetes restarts the pod regardless of the liveness probe status.
Which practice helps prevent Kubernetes from restarting pods unnecessarily due to transient issues in liveness probes?
Consider how to give the pod time to start and recover before restarting.
Setting initialDelaySeconds and increasing failureThreshold helps avoid restarts caused by slow startups or temporary glitches.