<p>I have a init container in which I'm storing file but while running it's showing the file is not present.
Is there any way I can exec inside init container and check where the file is being stored. </p>

<p>Use <code>kubectl describe &lt;pod&gt;</code> to get the id of the initContainer you need to exec into then use <code>kubectl exec -ti &lt;pod&gt; -c &lt;container&gt; sh</code> to access its shell. You may need to add some kind of delay, like <code>sleep</code> to the initContainer to access it before it completes or fails.</p>
