<p>I am trying to configure Prometheus using Helm in Kubernetes and I have tried to execute the command as below and the deployment was successful.</p>
<pre><code>$ helm install prometheus prometheus-community/prometheus --namespace prometheus --set 
nodeSelector.nodetype=infra
NAME: prometheus
LAST DEPLOYED: Tue Apr 27 22:47:20 2021
NAMESPACE: prometheus
STATUS: deployed
</code></pre>
<p>However, when I try to describe the pods created, I am unable to see the nodeSelector value as &quot;nodetype=infra&quot;. Can someone please point me out as to where I am missing out.</p>
<pre><code>$ kubectl get pods -n prometheus                              
NAME                                             READY   STATUS    RESTARTS   AGE
prometheus-alertmanager-7f86c968db-vln2x         2/2     Running   0          61m
prometheus-kube-state-metrics-6bfcd6f648-6cdbw   1/1     Running   0          61m
prometheus-node-exporter-7q9lh                   1/1     Running   0          61m
prometheus-pushgateway-54576f7765-6kjt5          1/1     Running   0          61m
prometheus-server-7c9b8dbfcd-9x48b               2/2     Running   0          61m

$ kubectl describe pod prometheus-alertmanager-7f86c968db-vln2x -n prometheus
Name:         prometheus-alertmanager-6bc84b9455-4g9mw
Namespace:    prometheus
Priority:     0
..
QoS Class:       BestEffort
Node-Selectors:  &lt;none&gt; --&gt; This is the field I'm expecting to have &quot;nodetype=infra&quot;

Tolerations:     node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                 node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
</code></pre>

<p>You need to configure the nodeSelector for each component</p>
<pre class="lang-yaml prettyprint-override"><code>alertmanager:
   nodeSelector:
      nodetype: infra
nodeExporter:
   nodeSelector:
      nodetype: infra
server:
   nodeSelector:
      nodetype: infra
pushgateway:
   nodeSelector:
      nodetype: infra
</code></pre>
<p>You can fin all the values <a href="https://github.com/prometheus-community/helm-charts/blob/main/charts/prometheus/values.yaml" rel="noreferrer">here</a></p>
