What is the difference between requiredDuringSchedulingIgnoredDuringExecution and preferredDuringSchedulingIgnoredDuringExecution in node affinity?

Kubernetes Fundamentals Hard

Kubernetes Fundamentals — Hard

What is the difference between requiredDuringSchedulingIgnoredDuringExecution and preferredDuringSchedulingIgnoredDuringExecution in node affinity?

Key points

  • Required enforces strict node matching
  • Preferred allows for flexible scheduling
  • Both ignore constraints post-scheduling
  • Scheduling constraints drive pod placement

Ready to go further?

Related questions