<p>I have a simple Node.js server running on some Kubernetes pods. When I delete a deployment with:</p>

<pre><code>kubectl delete deployment &lt;deployment-name&gt;
</code></pre>

<p>sometimes pods have a status of terminating for 5-8 seconds. Seems excessive - is there a way to kill them faster somehow?</p>

Alexander Mills
<p>If you really want to <em>kill</em> them instead of <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods" rel="nofollow noreferrer">gracefully shutdown</a>, then:</p>

<pre><code>kubectl delete deployment &lt;deployment-name&gt; --grace-period=0
</code></pre>

<p>Also, if you have any <a href="https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/#define-poststart-and-prestop-handlers" rel="nofollow noreferrer"><code>preStop</code> handlers configured</a>, you could investigate if they are causing any unnecessary delay.</p>
