To ensure that no two pods with label app=web are scheduled on the same node, which pod anti-affinity configuration should you use?
ApodAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: web
topologyKey: "kubernetes.io/hostname"
BpodAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
labelSelector:
matchLabels:
app: web
topologyKey: "zone"
CnodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: app
operator: NotIn
values:
- web
DpodAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
labelSelector:
matchLabels:
app: web
topologyKey: "zone"