<p>I have several microservices that have practically the same settings in YAML, some values change (e.g. image, version, a specific environment variable ...), and they are in different repositories, with a different pipeline each. How do I use the same template between them without getting repeated code?</p>

twsouza
<p>This is how we do it in the place I currently work.</p>
<p>We have our own generic Helm chart that is version controlled and hosted in our Artifactory, every parameter in that chart that may need changing is exposed in values.yaml.</p>
<p>The Artifactory gets added to helm as repository, then you only need separate a values.yaml for each microservice you want deployed as the chart gets sourced centrally.</p>
<p><code>helm install -f values.yaml microservice01 artifcatory/global-helm-chart</code></p>
<p>On top of that we use helmfile, but this is not necessary in order to achieve your goal.</p>
<p>The key points are:</p>
<ul>
<li>make the chart generic</li>
<li>host it centrally</li>
<li>add the repository to helm.</li>
</ul>
