<p>I have a simple, yet irritating issue. I have bunch of deployments, services, etc. written out. </p>

<p>For staging env (I'm using namespaces to separate staging/prod environments), I'm using images with tag :latest.</p>

<p>For prod env I'd like custom :tag. However I'd like avoiding copy/pasting the .yml file and am unsure how to best structure my code in helping achieve this goal. </p>

<p>Been there once. What I followed into was doing some simple templating, writing my own template wrappers, to finally end up evaluating and completely switching to <code>helm</code> "kubernetes package manager".</p>

<p>I would strongly advise you to take a shortcut and go directly for helm, it can help a lot really, and writing a basic chart for what you have is pretty simple and quick solution. That way you can install your chart (ergo manifests) with something like ie . <code>helm install mychart --set defaulttag=latest</code> or <code>helm install mychart --set defaulttag=dev</code> and copy no manifests around</p>
