<p>I need a sidecar in kubernetes cluster which runs initialization script and then terminates or sleep forever. I can't do this in postStart as postStart does not guarantee the CMD / ENTRYPOINT in main container has started. Any advice and insight is appreciated.</p>

Kok How Teh
<p>I use Job to accomplish the task.</p>

<pre><code>apiVersion: batch/v1
kind: Job
</code></pre>
