A probe is an indicator of a container's health. It judges health through periodically performing diagnostic actions against a container via kubelet. There are two kinds of probes for determining the state of a container:
- Liveness probe: This indicates whether or not a container is alive. If a container fails on this probe, kubelet kills it and may restart it based on the restartPolicy of a pod.
- Readiness probe: This indicates whether a container is ready for incoming traffic. If a pod behind a service isn't ready, its endpoint won't be created until the pod is ready.
The restartPolicy tells us how Kubernetes treats a pod on failures or terminations. It has three modes: Always, OnFailure, or Never. The default ...