Taints and Tolerations vs Node Affinity

In this section, we will take a look at Taints and Tolerations vs Node Affinity

  • Taints and Tolerations do not guarantee that the pods will only prefer these nodes; in this case, the red pods may end up on one of the other nodes that do not have a taint or toleration set.

    tn-na

  • As such, a combination of taints and tolerations and node affinity rules can be used together to completely dedicate nodes for specific parts.

    tn-nsa

K8s Reference Docs: