<p>Chart.yaml:-</p>
<pre><code>dependencies:
     - name: prometheus-operator
       version: 8.16.1
       repository: https://kubernetes-charts.storage.googleapis.com/
     - name: fluentd-elasticsearch
       version: 9.4.2
       repository: https://kiwigrid.github.io
</code></pre>
<p>Custom-values.yaml</p>
<pre><code># Change default node-exporter port
prometheus-node-exporter:
  service:
    port: 30206
    targetPort: 30206
prometheus:
  prometheusSpec:
    storageSpec:
       volumeClaimTemplate:
         spec:
           storageClassName: efs
           accessModes: [&quot;ReadWriteOnce&quot;]
           resources:
             requests:
               storage: 5Gi
         selector: {}
elasticsearch:
  hosts: [&quot;https://vpc-logs-abcd:443&quot;]
</code></pre>
<p>Running command:-</p>
<pre><code>helm install --namespace dependency test -f /root/custom-values.yaml  /root/customchart
</code></pre>
<p>Error/Problem:- Custom-values.yaml is NOT applied on the chart !! Chart Installed with &quot;Default values&quot;</p>

me25
<p>When Helm installs a dependency chart, <a href="https://docs.helm.sh/docs/topics/charts/#scope-dependencies-and-values" rel="nofollow noreferrer">only the values under the dependency's name are made visible to that chart</a>.  When for instance the <a href="https://github.com/helm/charts/tree/master/stable/prometheus-operator#configuration" rel="nofollow noreferrer">prometheus-operator chart documentation</a> lists configuration values, those need to be underneath the name of the dependency in your <code>custom-values.yaml</code>.</p>
<p>So your values need to be rearranged to look like:</p>
<pre class="lang-yaml prettyprint-override"><code>prometheus-operator: # dependency name from requirements.yaml/chart.yaml
  prometheus:
    prometheusSpec:
      storageSpec: { ... } # as you have it
  prometheus-node-exporter:
    # (Some settings are under nodeExporter; &quot;service&quot; isn't listed
    # in the chart docs)
    ...

fluentd-elasticsearch: # settings for the other dependency
  elasticsearch:
    hosts: [&quot;https://vpc-logs-abcd:443&quot;]
</code></pre>
