@@ -16,15 +16,15 @@ weight: 200
1616{{< feature-state feature_gate_name="CoordinatedLeaderElection" >}}
1717
1818<!--
19- Kubernetes {{< skew currentVersion >}} includes an alpha feature that allows {{<
19+ Kubernetes {{< skew currentVersion >}} includes a beta feature that allows {{<
2020glossary_tooltip text="control plane" term_id="control-plane" >}} components to
2121deterministically select a leader via _coordinated leader election_.
2222This is useful to satisfy Kubernetes version skew constraints during cluster upgrades.
2323Currently, the only builtin selection strategy is `OldestEmulationVersion`,
2424preferring the leader with the lowest emulation version, followed by binary
2525version, followed by creation timestamp.
2626-->
27- Kubernetes {{< skew currentVersion >}} 包含一个 Alpha 特性,
27+ Kubernetes {{< skew currentVersion >}} 包含一个 Beta 特性,
2828允许{{< glossary_tooltip text="控制平面" term_id="control-plane" >}}组件通过** 协调领导者选举** 确定性地选择一个领导者。
2929这对于在集群升级期间满足 Kubernetes 版本偏差约束非常有用。
3030目前,唯一内置的选择策略是 ` OldestEmulationVersion ` ,
@@ -36,34 +36,34 @@ Kubernetes {{< skew currentVersion >}} 包含一个 Alpha 特性,
3636Ensure that `CoordinatedLeaderElection` [feature
3737gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled
3838when you start the {{< glossary_tooltip text="API Server"
39- term_id="kube-apiserver" >}}: and that the `coordination.k8s.io/v1alpha1 ` API group is
39+ term_id="kube-apiserver" >}}: and that the `coordination.k8s.io/v1beta1 ` API group is
4040enabled.
4141-->
4242## 启用协调领导者选举 {#enabling-coordinated-leader-election}
4343
4444确保你在启动 {{< glossary_tooltip text="API 服务器" term_id="kube-apiserver" >}}时
4545` CoordinatedLeaderElection ` [ 特性门控] ( /zh-cn/docs/reference/command-line-tools-reference/feature-gates/ ) 被启用,
46- 并且 ` coordination.k8s.io/v1alpha1 ` API 组被启用。
46+ 并且 ` coordination.k8s.io/v1beta1 ` API 组被启用。
4747
4848<!--
4949This can be done by setting flags `--feature-gates="CoordinatedLeaderElection=true"` and
50- `--runtime-config="coordination.k8s.io/v1alpha1 =true"`.
50+ `--runtime-config="coordination.k8s.io/v1beta1 =true"`.
5151-->
5252此操作可以通过设置 ` --feature-gates="CoordinatedLeaderElection=true" `
53- 和 ` --runtime-config="coordination.k8s.io/v1alpha1 =true" ` 标志来完成。
53+ 和 ` --runtime-config="coordination.k8s.io/v1beta1 =true" ` 标志来完成。
5454
5555<!--
5656## Component configuration
5757
5858Provided that you have enabled the `CoordinatedLeaderElection` feature gate _and_
59- have the `coordination.k8s.io/v1alpha1 ` API group enabled, compatible control plane
59+ have the `coordination.k8s.io/v1beta1 ` API group enabled, compatible control plane
6060components automatically use the LeaseCandidate and Lease APIs to elect a leader
6161as needed.
6262-->
6363## 组件配置 {#component-configuration}
6464
6565前提是你已启用 ` CoordinatedLeaderElection ` 特性门控** 并且**
66- 启用了 ` coordination.k8s.io/v1alpha1 ` API 组,
66+ 启用了 ` coordination.k8s.io/v1beta1 ` API 组,
6767兼容的控制平面组件会自动使用 LeaseCandidate 和 Lease API 根据需要选举领导者。
6868
6969<!--
0 commit comments