Kubernetes: health checks with Liveness, Readiness, and Startup probes
The three kinds of probe: Liveness, Readiness, and Startup probes
Kubernetes (since version 1.16) has three types of probe, which are used for three different purposes:
- Liveness probe. This is for detecting whether the application process has crashed/deadlocked. If a liveness probe fails, Kubernetes will stop the pod, and create a new one.
- Readiness probe. This is for detecting whether the application is ready to handle requests. If a readiness probe fails, Kubernetes will leave the pod running, but won't send any requests to the pod.
- Startup probe. This is used when the container starts up, to indicate that it's ready. Once the startup probe succeeds, Kubernetes switches to using the liveness probe to determine if the application is alive. This probe was introduced in Kubernetes version 1.16.
Source: Andrew Lock
View detail in origin post: Adding health checks with Liveness, Readiness, and Startup probes