Node Affinity - Anti Affinity
Node Affinity
Using Node Affinity we can guide the Kube Scheduler to inform it of what Worker Nodes it should schedule the Pod on
RequiredDuringSchedulingIgnoredDuringExecution
In this Node affinity rule, the scheduler tries to schedule the pod on the given information, if the fails to find a right node, the pod is not scheduled
PreferredDuringSchedulingIgnoredDuringExecution
In this Node affinity rule, the scheduler tries to schedule the pod on the given information, if the fails to find a right node, the pod is scheduled on any available node, this is on basis of best effort