In Kubernetes, probes are used by kubelet to determine the state of a Pod—you can use them to customize how you check whether a Pod is ready to serve your traffic or a container needs to be restarted. There are three types of probes that you can configure for each container running in a Pod:
- Readiness probe: This is used to determine whether a given container is ready to accept traffic. A Pod is considered ready only if all of its containers are ready. Pods that are not ready will be removed from Service Endpoints until they become ready again.
- Liveness probe: This is used to detect whether a container needs to be restarted. This can help in situations when a container has been stuck in a deadlock or other issues when the container process is alive but unable to operate properly. Restarting the container may increase...