Back to search

Node affinity and taints in Kubernetes

Affinity attracts workloads to certain nodes; taints repel workloads unless they have matching tolerations.

DevOps Hard Theory

Node affinity and taints in Kubernetes

Affinity attracts workloads to certain nodes; taints repel workloads unless they have matching tolerations.

  • Affinity is placement preference or rule
  • Taints push workloads away
  • Useful for GPU, critical, or isolated nodes

Node affinity and taints in Kubernetes