<p>I am very newbie on Helm and struggling to configure deployment.yaml.Mychart tree structure looks like below. But how should I pass the values for dev and prod to the deployment.yaml?</p>

<p>For example if I would like to use different replicas for prod should I add another values such as below or deployment.yaml always keep as it is and use mutlipe values.yaml like as below.</p>

<pre><code> replicas: {{ .Values.replicaCount .values.dev.replicacount }}
</code></pre>

<p>Or use only below tag is enough. Let's say if git branch equals to master then use below command</p>

<pre><code>helm install . -f values.production.yaml
</code></pre>

<p>If git branch equal to development then use following command</p>

<pre><code> helm install . -f values.dev.yaml


+-- charts
|   \-- my-chart
|       +-- Chart.yaml        # Helm chart metadata
|       +-- templates
|       |   \-- ...
|       +-- values.yaml       # default values
|       +-- values.dev.yaml   # development override values
|       +-- values.prod.yaml  # production override values
</code></pre>

<p>You should have a <code>values.yaml</code> file per environment.</p>

<p>That means that in your <code>templates/deployment.yaml</code> you'll have</p>

<pre><code> replicas: {{ .Values.replicaCount }}
</code></pre>

<p>And then, for each environment you'll have a specific <code>values.yaml</code>. Like:</p>

<pre><code>+-- values.yaml       # default values
+-- values.dev.yaml   # development override values
+-- values.prod.yaml  # production override values
</code></pre>
