Process Flow - Node affinity and anti-affinity
Pod Scheduling Request
Check Node Affinity Rules
Schedule Pod
Conflicts with existing pods?
Do NOT schedule
The scheduler checks node affinity rules first to find matching nodes. If none match, it checks anti-affinity rules to avoid conflicts before scheduling the pod.