Skip to content

Commit aad1b7c

Browse files
committed
fix3
1 parent 4e3a60a commit aad1b7c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,9 @@ The keys are used to look up values from the pod labels; those key-value labels
379379
filtering selects the set of existing pods that will be taken into Pod (anti)affinity calculation.
380380

381381
{{< caution >}}
382-
It's not recommended to use `matchLabelKeys` with labels that might be updated
383-
because the update of the label isn't reflected onto the merged `labelSelector`.
382+
It's not recommended to use `matchLabelKeys` with labels that might be updated directly on pods.
383+
Even if you edit the pod's label that is specified at `matchLabelKeys` **directly**, (that is, not via a deployment),
384+
kube-apiserver doesn't reflect the label update onto the merged `labelSelector`.
384385
{{< /caution >}}
385386

386387
A common use case is to use `matchLabelKeys` with `pod-template-hash` (set on Pods
@@ -431,8 +432,9 @@ or anti-affinity. The field specifies keys for the labels that should **not** ma
431432
when satisfying the Pod (anti)affinity.
432433

433434
{{< caution >}}
434-
It's not recommended to use `matchLabelKeys` with labels that might be updated
435-
because the update of the label isn't reflected onto the merged `labelSelector`.
435+
It's not recommended to use `mismatchLabelKeys` with labels that might be updated directly on pods.
436+
Even if you edit the pod's label that is specified at `mismatchLabelKeys` **directly**, (that is, not via a deployment),
437+
kube-apiserver doesn't reflect the label update onto the merged `labelSelector`.
436438
{{< /caution >}}
437439

438440
One example use case is to ensure Pods go to the topology domain (node, zone, etc) where only Pods from the same tenant or team are scheduled in.

0 commit comments

Comments
 (0)