You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should support setting nodeAffinity, podAffinity, podAntiAffinity, and preferred/required for each.
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution: # nodeSelectornodeSelectorTerms: ## logical AND of the items below
- matchExpressions:
# local OR of the items below
- key: kubernetes.io/e2e-az-nameoperator: Invalues:
- e2e-az1
- e2e-az2preferredDuringSchedulingIgnoredDuringExecution:
# fullfilled weights summed over and compared in between nodes
- weight: 1preference:
matchExpressions:
# local OR of the items below
- key: another-node-label-keyoperator: Invalues:
- another-node-label-valuepodAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
# logical AND of the items below
- labelSelector:
matchExpressions:
# logical OR of the items below
- key: securityoperator: Invalues:
- S1topologyKey: failure-domain.beta.kubernetes.io/zonepreferredDuringSchedulingIgnoredDuringExecution:
# sum the weights for each node and compare
- weight: 100podAffinityTerm:
labelSelector:
matchExpressions:
- key: securityoperator: Invalues:
- S2topologyKey: kubernetes.io/hostname# Exactly the same fields etc as podAffinitypodAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: appoperator: Invalues:
- storetopologyKey: "kubernetes.io/hostname"preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100podAffinityTerm:
labelSelector:
matchExpressions:
- key: securityoperator: Invalues:
- S2topologyKey: kubernetes.io/hostname
The text was updated successfully, but these errors were encountered:
We should support setting nodeAffinity, podAffinity, podAntiAffinity, and preferred/required for each.
The text was updated successfully, but these errors were encountered: