Liveness Probe in kubernetes

<p>We can&rsquo;t watch or monitor the pods and containers that are running inside the cluster. In a live scenario we are going to have hundreds and thousands of containers. So we can&rsquo;t check whether the container is processing the request or not. Sometimes, the container will run properly but can&rsquo;t do calculations, at this point of time pods won&rsquo;t get any error but the application inside the pod can&rsquo;t process requests (something like our system hangs). At this time we need to restart the container. This scenario is called deadlock.</p> <h2>What is liveness probe..?</h2> <p>The kubelet (component inside the kubernetes cluster ) uses liveness probes to know when to restart a container. For example, liveness probes could catch a deadlock, where an application is running, but unable to make progress. Restarting a container in such a state can help to make the application more available despite bugs.</p> <p><a href="https://blog.devops.dev/liveness-probe-in-kubernetes-3e49768f5362"><strong>Click Here</strong></a></p>