<p>As we know, k8s supports <code>postStart</code> and <code>preStop</code> lifecycle hook, but in most cases what we need is actually <code>preStart</code>.</p>
<p>Is there any reason not implementing the <code>preStart</code> hook?</p>

Rosmee
<p>look at <a href="https://kubernetes.io/docs/concepts/workloads/pods/init-containers/" rel="nofollow noreferrer">Init containers</a> to do preStart task.</p>
<h2>Note:</h2>
<p>In fact there is already a PR requested to introduce prestart and postStart hooks in pod lifecycle. It has been pending since 2014 and not much progress is seen.
follow the link -&gt; <a href="https://github.com/kubernetes/kubernetes/issues/140" rel="nofollow noreferrer">https://github.com/kubernetes/kubernetes/issues/140</a></p>
