Will a daemonset always be deployed to all nodes? Will a daemonset always be deployed to all nodes? kubernetes kubernetes

Will a daemonset always be deployed to all nodes?


It depends on which target of nodes are selected.

If you specify a .spec.template.spec.nodeSelector, then the DaemonSet controller will create Pods on nodes which match that node selector. Likewise if you specify a .spec.template.spec.affinity, then DaemonSet controller will create Pods on nodes which match that node affinity. If you do not specify either, then the DaemonSet controller will create Pods on all nodes.DaemonSet

Also I would check the taint and toleration for Daemonset.