<p>I have an image called <code>http</code> which has a file called <code>httpd-isec.conf</code>. I'd like to edit <code>httpd-isec.conf</code> before the image is started by kubernetes. Is that possible?</p>

<p>Would <code>initContainers</code> and mounting the image work in some way? </p>

Vladimir
<p>This is not possible. Images are immutable. What you can do is use an init container to copy the file to an emptyDir volume, edit it, and then mount that volume over the original file in the main container.</p>
