Running a daemonset on all nodes of a kubernetes cluster

11/30/2018

How can I run a daemonset on all nodes of a kubernetes cluster (including master) without overriding the taints of any nodes?

-- Shashank Pai
kubernetes

2 Answers

4/12/2020

in my case it was:

tolerations:
- operator: Exists # matches all keys, values and effects which means this will tolerate everything

An empty key with operator Exists matches all keys, values and effects which means this will tolerate everything.

tolerations:
- operator: "Exists"

From: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/#concepts

-- dsaydon
Source: StackOverflow

11/30/2018

If you want to run a daemonset and make sure it will get scheduled onto all nodes in the cluster regardless of taints. For example in a GKE cluster running google’s Stackdriver logging agent the fluentd-gcp daemonset has the following toleration to make sure it gets past any node taint:

tolerations:
-operator: Exists
 effect: NoExecute
-operator: Exists
 effect: NoSchedule

This way you can scheduler the daemonset on the master even if it has NoSchedule taints.

-- Prafull Ladha
Source: StackOverflow