<p>Is it possible to define multiple label and taints for a daemonset (i.e.) so that it can access / deploy in multiple nodes?</p>
<pre><code> spec:
   tolerations:
     - key: &quot;sample-node&quot;,&quot;example-node&quot;
       operator: &quot;Equal&quot;
       effect: &quot;NoSchedule&quot;
       value: &quot;true&quot;
</code></pre>
<p>Or in a different format? Thanks in advance!</p>

Lakshmi Narayanan
<p>Syntax mentioned in your query will fail with below error</p>
<pre><code>is invalid: spec.tolerations[0].key: Invalid value: &quot;sample-node,example-node&quot;
</code></pre>
<p>The tolerations can be added as below:</p>
<pre><code>tolerations:
- key: &quot;sample-node&quot;
  operator: &quot;Equal&quot;
  effect: &quot;NoSchedule&quot;
  value: &quot;true&quot;
- key: &quot;example-node&quot;
  operator: &quot;Equal&quot;
  effect: &quot;NoSchedule&quot;
  value: &quot;true&quot;
</code></pre>
<p>The above can be achieved by tainting multiple nodes with same label instead of two different labels and adding it twice.  An single node can have multiple tolerations and more details are explained in <a href="https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/#concepts" rel="nofollow noreferrer">k8s documentation</a>.</p>
