<p>I have used the prometheus helm chart from <a href="https://prometheus-community.github.io/helm-charts" rel="nofollow noreferrer">https://prometheus-community.github.io/helm-charts</a> to setup a prometheus server on EKS for me. That involves prometheus-node-exporter too. Now what I'm trying to do is modify the prometheus-node-exporter service port to another one from 9100.</p>
<p>I updated the value under prometheus-node-exportes/values.yaml to this :</p>
<pre><code>service:
  type: ClusterIP
  port: 9400
  targetPort: 9400
  nodePort:
  portName: metrics
  listenOnAllInterfaces: true
  annotations:
    prometheus.io/scrape: &quot;true&quot;
</code></pre>
<p>but when I do :</p>
<p><code>helm upgrade prometheus prometheus-community/prometheus --namespace monitoring</code>
the changes do not take effect at all.</p>
<p>How can I update values of other subcharts like prometheus-node-exporter in my helm chart?</p>

egib
<p>The way that your command is running, is pulling the chart from the internet, you are not passing any extra values file.</p>
<p>If the port is all you are changing, use this command to pass the port value:
<code>helm upgrade prometheus prometheus-community/prometheus --namespace monitoring --set prometheus-node-exporter.service.port=&lt;your-port&gt;</code></p>
<p>Otherwise, you can download the promethues values file, then add the mods to it, e.g.:</p>
<pre><code>prometheus-node-exporter:
  ## If false, node-exporter will not be installed
  ##
  enabled: true

  rbac:
    pspEnabled: false

  containerSecurityContext:
    allowPrivilegeEscalation: false

  service:
  port: &lt;your-port&gt;
</code></pre>
<p>Then, pass the values file to the upgrade command using <code>-f values.yaml</code></p>
<p>Also, check <a href="https://helm.sh/docs/chart_template_guide/values_files/" rel="nofollow noreferrer">this doc</a>.</p>
