Skip to content

Commit

Permalink
Clarify use of topologySpreadConstraints (#2464) (#2465)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Nov 6, 2023
1 parent 2e4f715 commit bf262fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zh/configure-a-tidb-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ affinity:
如需使用 `topologySpreadConstraints`,需要满足以下条件:

* Kubernetes 集群使用 `default-scheduler`,而不是 `tidb-scheduler`。详情可以参考 [tidb-scheduler 与 default-scheduler](tidb-scheduler.md#tidb-scheduler-与-default-scheduler)。
* Kubernetes 集群开启 `EvenPodsSpread` feature gate。如果 Kubernetes 版本低于 v1.16 或集群未开启 `EvenPodsSpread` feature gate,`topologySpreadConstraints` 的配置将不会生效。
* 如果 Kubernetes 版本在 v1.16 或 v1.21 之间,需要开启 `EvenPodsSpread` feature gate。如果 Kubernetes 版本低于 v1.16 或集群未开启 `EvenPodsSpread` feature gate,`topologySpreadConstraints` 的配置将不会生效。如果 Kubernetes 版本为 v1.22 或更高版本,可忽略该条件

`topologySpreadConstraints` 可以设置在整个集群级别 (`spec.topologySpreadConstraints`) 来配置所有组件或者设置在组件级别 (例如 `spec.tidb.topologySpreadConstraints`) 来配置特定的组件。

Expand Down

0 comments on commit bf262fe

Please sign in to comment.