Skip to content

Commit fc202da

Browse files
authored
Clarify pod anti-affinity description
The code example uses `preferredDuringScheduling...`, as opposed to `requiredDuringScheduling...`. So the anti-affinity rule is a soft one. It says that the pod _should_ not be scheduled on [...] rather than that the pod _cannot_ be scheduled on [...].
1 parent f1b006f commit fc202da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/concepts/scheduling-eviction/assign-pod-node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ as at least one already-running pod that has a label with key "security" and val
246246
on node N if node N has a label with key `topology.kubernetes.io/zone` and some value V
247247
such that there is at least one node in the cluster with key `topology.kubernetes.io/zone` and
248248
value V that is running a pod that has a label with key "security" and value "S1".) The pod anti-affinity
249-
rule says that the pod cannot be scheduled onto a node if that node is in the same zone as a pod with
249+
rule says that the pod should not be scheduled onto a node if that node is in the same zone as a pod with
250250
label having key "security" and value "S2". See the
251251
[design doc](https://git.k8s.io/community/contributors/design-proposals/scheduling/podaffinity.md)
252252
for many more examples of pod affinity and anti-affinity, both the `requiredDuringSchedulingIgnoredDuringExecution`

0 commit comments

Comments
 (0)