<p>I want to install the <code>kube-prometheus-stack</code> (<a href="https://github.com/prometheus-operator/kube-prometheus" rel="nofollow noreferrer">https://github.com/prometheus-operator/kube-prometheus</a>) but exclude <code>Grafana</code> and <code>Alertmanager</code> from the helm install as I am installing them separately.</p>
<p>I would like to install only the following components:</p>
<ul>
<li>Prometheus Operator</li>
<li>Prometheus</li>
<li>Prometheus node-exporter</li>
<li>Prometheus Adapter for Kubernetes Metrics APIs</li>
<li>kube-state-metrics</li>
</ul>
<p>I tried to create a <code>values.yaml</code> file locally and install using helm chart but I am not successful doing so.</p>
<p>What's the best way to do this?</p>
<p>TIA.</p>

skp15
<p>Those are subcharts(dependencies) in <code>kube-prometheus-stack</code> helm chart. usually all subcharts have something like this:</p>
<pre class="lang-yaml prettyprint-override"><code>## subchartname:
##    enabled: true
grafana:
  enabled: false
</code></pre>
<p>and also You can check <code>dependencies</code> section in <code>Chart.yaml</code> file and see what is the condition key to enable/disable a dependency.</p>
<p>Links:</p>
<ul>
<li><a href="https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/Chart.yaml#L53" rel="nofollow noreferrer">grafana condition key in <code>Chart.yaml</code> file</a></li>
<li><a href="https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml#L754-L755" rel="nofollow noreferrer">option to disable grafana in values.yaml</a></li>
</ul>
