<p>I have used nginx-ingress controller as a sub-chart and I want to override controller.service.nodePorts.http in the subchart. I tried few things and nothing seem to work. Here is what I've tried</p>

<ul>
<li>using --set controller.service.nodePorts.http=32080 during helm install command</li>
<li>declaring this path in my chart's value.yaml</li>
</ul>

<p>I've also gone over the helm documentation for overriding sub-chart values but none seem to work.</p>

<p>Any points what I may be missing ? Thanks in advance...</p>

Gaurav Sharma
<p>When overriding values of a sub-chart, you need to nest those configurations under the name of the subchart. For example in values.yaml:</p>

<pre><code>mysubchart:
  x: y
</code></pre>

<p>In your case, if you imported the nginx controller chart as <code>nginx-controller</code>, you could add this to the main chart:</p>

<pre><code>nginx-controller:
  controller:
    service:
      nodePorts:
        http: "32080"
</code></pre>

<p>This topic is covered in the helm docs under: <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">https://github.com/helm/helm/blob/master/docs/chart_template_guide/subcharts_and_globals.md#overriding-values-of-a-child-chart</a></p>
