Kubernetes Probes
Kubernetes probes are health checks that the kubelet (the node agent) performs on containers running inside a Pod. Their primary purpose is to let Kubernetes know the state of your application so it can make intelligent decisions, like restarting a failing container or not sending traffic to a pod that isn't ready. There are three distinct types of probes, each serving a different purpose: Liveness Probe (livenessProbe) Purpose : Answers the question, "Is the application alive and running?" Action : If a liveness probe fails, the kubelet restarts the container. Use Case : To recover from a "deadlock" or a situation where the application is running but is unable to make any progress. A classic example is a web server that has stopped responding to HTTP requests. Readiness Probe (readinessProbe) Purpose : Answers the question, "Is the application ready to accept traffic?" Action : If a readiness probe fails, th...