Skip to content

Commit a59e1e8

Browse files
authored
Merge pull request #49962 from intUnderflow/main
Document topologySpreadConstraint duplicate value conflict handling
2 parents 697728e + 6680648 commit a59e1e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/en/docs/concepts/scheduling-eviction/topology-spread-constraints.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ spec:
7070
### other Pod fields go here
7171
```
7272

73+
{{< note >}}
74+
There can only be one `topologySpreadConstraint` for a given `topologyKey` and `whenUnsatisfiable` value. For example, if you have defined a `topologySpreadConstraint` that uses the `topologyKey` "kubernetes.io/hostname" and `whenUnsatisfiable` value "DoNotSchedule", you can only add another `topologySpreadConstraint` for the `topologyKey` "kubernetes.io/hostname" if you use a different `whenUnsatisfiable` value.
75+
{{< /note >}}
76+
7377
You can read more about this field by running `kubectl explain Pod.spec.topologySpreadConstraints` or
7478
refer to the [scheduling](/docs/reference/kubernetes-api/workload-resources/pod-v1/#scheduling) section of the API reference for Pod.
7579

0 commit comments

Comments
 (0)