<p>I'm trying to set a grace shutdown period for my pods. I found out you can add a field called <code>terminationGracePeriodSeconds</code> to the helm charts to set the period. I then looked for example and crossed upon these:</p>
<p><a href="https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices-terminating-with-grace" rel="nofollow noreferrer">https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices-terminating-with-grace</a></p>
<p>In the above link they define the value in a <code>kind: pod</code> template.</p>
<p><a href="https://pracucci.com/graceful-shutdown-of-kubernetes-pods.html" rel="nofollow noreferrer">https://pracucci.com/graceful-shutdown-of-kubernetes-pods.html</a></p>
<p>In the above link they define the value in a <code>kind: deployment</code> template.</p>
<p>Is there a difference between the 2 kinds in regard to where I define this value?</p>

CodeMonkey
<blockquote>
<p>Is there a difference between the 2 kinds in regard to where I define this value?</p>
</blockquote>
<p>A <code>Deployment</code> has a field <code>template:</code> and that is actually a <code>PodTemplate</code> (most structure of a <code>Pod</code>) that includes the <code>terminationGracePeriodSeconds</code> property.</p>
<p>A good way to check documentations for fields is to use <code>kubectl explain</code>.</p>
<p>E.g.</p>
<pre><code>kubectl explain Deployment.spec.template.spec
</code></pre>
<p>and</p>
<pre><code>kubectl explain Pod.spec
</code></pre>
