Basics of affinity and antiaffinity in k8s cluster Affinity Node affinity is somewhat like an attachment based on the labels that a node has, Let us say we need to schedule pods on nodes that have certain labels, we use node affinity to tell pods to schedule itself to the…