Probes/Health Checks
A probe is a health check that can be configured to check the health of the containers running in a pod. A probe can be used to determine whether a container is running or ready to receive requests. A probe may return the following results:
Success
: The container passed the health check.Failure
: The container failed the health check.Unknown
: The health check failed for unknown reasons.
Types of Probes
The following types of probes are available for us to use.
Liveness Probe
This is a health check that's used to determine whether a particular container is running or not. If a container fails the liveness probe, the controller will try to restart the pod on the same node according to the restart policy configured for the pod.
It's a good idea to specify a liveness probe when we want the container to be terminated and restarted when a particular check fails.
Readiness Probe
This is a health check that's used...