20250218

Kubernetes Probes: Liveness, Readiness, and Startup Probes

Kubernetes Probes - KubeOps

In Kubernetes, a probe is a mechanism used to determine the health and readiness of a container or application running within a pod.

Liveness, Readiness, and Startup Probes | Kubernetes

There are three types of probes: liveness, readiness, and startup probes.

A liveness probe determines if a container is still running and functioning correctly. If the liveness probe fails, Kubernetes (kubelet) assumes the container is unhealthy and restarts it.

A readiness probe determines if a container is ready to accept requests. If the readiness probe fails, Kubernetes removes the pod from the service’s endpoints list. The container stays running, but no new traffic is routed to it until it passes the readiness probe again. (TODO: Check the difference between pods and containers in Kubernetes. Check the responsibilities of kubelet)

A startup probe determines if a container has started. This probe is used not to trigger a liveness probe and a readiness probe until a container starts.


TODO:


index 20250217 20250219