Skip to content

Commit a794297

Browse files
authored
Fix pod anti-affinity topology key (#19587)
1 parent 19c883d commit a794297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/concepts/configuration/assign-pod-node.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ for performance and security reasons, there are some constraints on topologyKey:
229229
1. For affinity and for `requiredDuringSchedulingIgnoredDuringExecution` pod anti-affinity,
230230
empty `topologyKey` is not allowed.
231231
2. For `requiredDuringSchedulingIgnoredDuringExecution` pod anti-affinity, the admission controller `LimitPodHardAntiAffinityTopology` was introduced to limit `topologyKey` to `kubernetes.io/hostname`. If you want to make it available for custom topologies, you may modify the admission controller, or simply disable it.
232-
3. For `preferredDuringSchedulingIgnoredDuringExecution` pod anti-affinity, empty `topologyKey` is interpreted as "all topologies" ("all topologies" here is now limited to the combination of `kubernetes.io/hostname`, `failure-domain.beta.kubernetes.io/zone` and `failure-domain.beta.kubernetes.io/region`).
232+
3. For `preferredDuringSchedulingIgnoredDuringExecution` pod anti-affinity, empty `topologyKey` is not allowed.
233233
4. Except for the above cases, the `topologyKey` can be any legal label-key.
234234

235235
In addition to `labelSelector` and `topologyKey`, you can optionally specify a list `namespaces`

0 commit comments

Comments
 (0)