<p>Consider I have 10 containers in my POD.</p>
<p>I have added startUpProbe for 3 containers.</p>
<p>If I delete my POD, before Probe is completed sucessfully (Which means those containers are not in READY state)</p>
<p>Deleting Pod should send SIGTERM signal to all the containers to down it gracefully.</p>
<p>Will SIGTERM send to 3 containers where am using probes that are not yet completed ?</p>

sethu ram
<p>The blog <strong><a href="https://www.airplane.dev/blog/sigterm-signal-15-linux-graceful-termination-exit-code-143" rel="nofollow noreferrer">Troubleshooting SIGTERM: graceful termination of Linux containers</a></strong> written by <strong>James Walker</strong> details about <strong>SIGTERM</strong> and how to leverage it in your application so that it can terminate without corrupting any data.</p>
<blockquote>
<p><strong>SIGTERM</strong> is a Linux signal that Unix-based operating systems issue when
they want to terminate a running process. In normal circumstances,
your application should respond to a <strong>SIGTERM</strong> by running cleanup
procedures that facilitate graceful termination. If processes aren’t
ready to terminate, they may elect to ignore or block the signal.</p>
</blockquote>
<p><em>So, when a pod is deleted the <strong>SIGTERM</strong> signal is sent to all the containers irrespective of their state and the pod will wait till the graceful termination period(which is 30s by default), once the graceful period ends <strong>SIGKILL</strong> signal will be sent which will forcefully terminates all the processes. Since your containers are having <strong>startUpProbe</strong> enabled they will be in the pending state when the <strong>SIGTERM</strong> signal is generated and can continue the process till the graceful termination period ends, then they will get terminated by the <strong>SIGKILL</strong> signal. (<strong>reference:</strong> <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#:%7E:text=When%20a%20Pod%20is%20being%20deleted%2C%20it%20is%20shown%20as%20Terminating%20by%20some%20kubectl%20commands.%20This%20Terminating%20status%20is%20not%20one%20of%20the%20Pod%20phases.%20A%20Pod%20is%20granted%20a%20term%20to%20terminate%20gracefully%2C%20which%20defaults%20to%2030%20seconds." rel="nofollow noreferrer">kubernetes docs</a>)</em></p>
