<p>Consider i have 2 containers inside pod.</p>
<ol>
<li>Configured startup probe on these 2 containers</li>
<li>It will come to READY state only when both probes are successfully executed and satisfied</li>
<li>If one of the probe is failed, I may remain one container in not in READY state.</li>
</ol>
<p>I need to have condition here :
If any one of the container inside my pod is not getting UP and READY state. After few tries in probe.
I need to destroy this POD from the node.</p>
<p>Is that possible ?</p>

sethu ram
<p>Yes, you can do so by combination of a readiness probe, a liveness probe, and a pod termination policy.</p>
<ol>
<li><p>Configure a readiness probe for each container in the pod to determine if it’s ready to accept traffic.</p>
</li>
<li><p>Configure a liveness probe for each container to check if it’s running and healthy. If the probe fails,the container will be restarted.</p>
</li>
<li><p>Set the pod’s termination policy to ‘Failure’. This means that if any container in the pod fails, the entire pod will be terminated.</p>
</li>
</ol>
<p>Refer to the <a href="https://www.fairwinds.com/blog/a-guide-to-understanding-kubernetes-liveness-probes-best-practices#:%7E:text=A%20few%20other%20liveness%20probe%20best%20practices:%7E:text=Understanding%20liveness%20probe%20settings" rel="nofollow noreferrer">liveness probe best practices</a> written by Adam Zahorscak for more information.</p>
