Node Affinity vs Node Anti-Affinity: What Actually Happens Inside the Kubernetes Scheduler?

Kubernetes Scheduling Deep Dive for Platform Engineers, SREs, and Cluster Operators