<p>I want to set the parameter</p>
<blockquote>
<p>terminationGracePeriodSeconds</p>
</blockquote>
<p>to some value so that kubernetes will let my pods finish their work. I know that normaly you will use this parameter combined with a preStop hook of type http or exec, but what if I only set this parameter without any hook? will Kubernetes still wait for the terminationGracePeriodSeconds before it removes the container?</p>

toto
<p>There is no actual coupling between <code>terminationGracePeriodSeconds</code> spec and a definition of a <code>preStop</code> and you can define the <code>pod.Spec.TerminationGracePeriodSeconds</code> value to your custom needs per-container.</p>
<p>Meanwhile, the value to which the graceful shutdown period is set will affect the time left for your container to terminate gracefully when you have a <code>preStop</code> hook configured as the both execute in a synchronous serial fashion and the total time specified in the <code>terminationGracePeriodSeconds</code> includes the <code>preStop</code> hook execution time.</p>
<p>As an example, if you specify 30 (seconds) as the <code>terminationGracePeriodSeconds</code> value and the <code>preStop</code> hook takes 25 seconds to terminate, then the container is left with only 5 seconds to terminate gracefully before being shutdown abruptly by the <em>Kubernetes</em> Manager.</p>
