Taints/tolerations vs node affinity?

IntermediateConceptKubernetes
Answer

A taint repels pods from a node, and a toleration lets a pod ignore that taint. Affinity attracts pods to nodes. To dedicate nodes to a workload you need both.

All Real-World Interview questions Roadmap: Interview readiness

More on Kubernetes