Pod Affinity - Anti Affinity

Pod affinity is one of the affinities in Kubernetes, I would like to to have the Node Affinity - Anti Affinity where you restrict where the pods are to be scheduled.

In pod affinity, I for now have no use for the affinity part of it, whilst I have a requirement for the anti-affinity part, using which I can explicitly tell the Control Plane Node not to schedule a Pod on the node where a similar pod is already scheduled, this ensures that all the nodes to which the pod has affinity with has at least one instance of the pod running on it, making sure that when any one node dies, we don’t have any application downtime.

References