Skip to content

Commit

Permalink
Add information about topologySpeadConstraint duplicate values
Browse files Browse the repository at this point in the history
  • Loading branch information
intUnderflow authored Feb 28, 2025
1 parent dc57409 commit 121fddd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ spec:
### other Pod fields go here
```

{{< note >}}
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.
{{< /note >}}

You can read more about this field by running `kubectl explain Pod.spec.topologySpreadConstraints` or
refer to the [scheduling](/docs/reference/kubernetes-api/workload-resources/pod-v1/#scheduling) section of the API reference for Pod.

Expand Down

0 comments on commit 121fddd

Please sign in to comment.