<p>We are running our workloads on AKS. Basically we have Two Node-Pools.</p>
<p><strong>1. System-Node-Pool:</strong> Where all system pods are running</p>
<p><strong>2. Apps-Node-Pool:</strong> Where our actual workloads/ apps run in.</p>
<p>In fact, our Apps-Node-Pool is <strong>Tainted</strong> whereas System-Node-Pool <strong>isn't</strong>. So basically I deployed Loki-Grafana stack in order for Monitoring and for Log analysis. I'm using below Helm command to install the Grafana-Loki stack.</p>
<pre><code>helm upgrade --install loki grafana/loki-stack  --set grafana.enabled=true,prometheus.enabled=true,prometheus.alertmanager.persistentVolume.enabled=false,prometheus.server.persistentVolume.enabled=false,loki.persistence.enabled=true,loki.persistence.storageClassName=standard,loki.persistence.size=5Gi
</code></pre>
<p>Since the Toleration isn't added in the helm command (Or even in values.yaml) all the Grafana and Loki pods get deployed in the <strong>System-Node-Pool</strong>. But my case is, since the necessary agents aren't deployed on <strong>Apps-Node-Pool</strong>  (For example: Promtail Pods) I can't check the logs of my App pods.</p>
<p>Since the <strong>Taint</strong> exists in <strong>Apps-Node-Pool</strong> if we add a Toleration along with the Helm command, then basically all the Monitoring related Pods will get deployed in Apps-Node-Pool (Still can't guarant as it may get deployed in System-Node-Pool since it doesn't have a Taint)</p>
<p>So according to my cluster, what can I do in order to make sure that Agent pods are also running in Tainted node?</p>

Container-Man
<p>So in my case my requirement was to run &quot;Promtail&quot; pods in Apps-Node-Pool. I haven't added a Toleration to the promtail pods, so I had to add a toleration to the Promtail pod. So successfully the Promtail pods got deployed in Apps-Node-Pool.</p>
<p>But still adding a Toleration in Promtail pod doesn't guarant the deployment of the Promtail pods gets deployed in Apps-Node-Pool because in my case, System-Node-Pool didn't have any Taint.</p>
<p>In this case you may leverage both NodeAffinity and Tolerations to exclusively deploy pods in a specific node.</p>
