<p>I'm trying to create a chart with multiple subcharts ( 2 instances of ibm-db2oltp-dev). Is there a way to define in the same values.yaml file, different configuration for each instance?</p>
<p>I need two databases:</p>
<pre><code>db2inst.instname: user1
db2inst.password: password1
options.databaseName: dbname1

db2inst.instname: user2
db2inst.password: password2
options.databaseName: dbname2
</code></pre>
<p>I saw it could be done via alias but I didn't find an example explaining how to do it. Is it possible?</p>

soi
<p>Yes, it is possible:</p>
<p>In <strong>Chart.yaml</strong> for Helm 3 or in <strong>requirements.yaml</strong> for Helm 2:</p>
<pre><code>dependencies:
  - name: ibm-db2oltp-dev                *(full chart name here)*
    repository: http://localhost:10191   *(Actual repository url here)*
    version: 0.1.0                       *(Required version)*
    alias: db1inst                       *(The name of the chart locally)*
  - name: ibm-db2oltp-dev
    repository: http://localhost:10191
    version: 0.1.0
    alias: db2inst
</code></pre>
<p><a href="https://github.com/helm/helm/blob/master/docs/chart_template_guide/subcharts_and_globals.md#overriding-values-of-a-child-chart" rel="noreferrer"><strong>parentChart/values.yaml:</strong></a></p>
<pre><code>someParentChartValueX: x
someParentChartValueY: y

db1inst:
  instname: user1
  db2inst: password1

db2inst:
  instname: user2
  db2inst: password2
</code></pre>
