In Kubernetes, if a liveness probe fails repeatedly, what is the expected behavior for the container?
Think about how Kubernetes ensures containers stay healthy.
A liveness probe failure signals Kubernetes that the container is unhealthy. Kubernetes restarts the container to try to fix the issue.
You run kubectl describe pod myapp and see the readiness probe failing repeatedly. What status will the pod show in the output?
Readiness probes affect traffic routing but not pod lifecycle.
When readiness probes fail, the pod stays running but is marked as not ready, so it won't receive traffic.
A container restarts repeatedly, but its readiness probe always succeeds. What is the most likely cause?
Readiness probes do not trigger restarts.
Liveness probe failures cause container restarts. Readiness probes only control traffic routing.
Arrange the following Kubernetes events in the correct order when a liveness probe fails repeatedly:
Think about how Kubernetes handles unhealthy containers step-by-step.
The kubelet first detects the failure, then kills the container, restarts it, and updates pod status accordingly.
You want to ensure your container restarts only when truly unhealthy, but you also want to control traffic routing carefully. Which probe configuration is best?
Consider the distinct roles of liveness and readiness probes.
Liveness probes trigger restarts on failure, readiness probes control traffic routing without restarts. Using both properly avoids unnecessary restarts.