You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [`kubeadm`](/docs/reference/setup-tools/kubeadm/) tool now supports etcd learner mode, which
23
23
allows you to enhance the resilience and stability
24
-
of your Kubernetes clusters by leveraging the [learner mode](https://etcd.io/docs/v3.4/learning/design-learner/#appendix-learner-implementation-in-v34)
24
+
of your Kubernetes clusters by leveraging the [learner mode](https://etcd.io/docs/v3.4/learning/design-learner/#appendix-learner-implementation-in-v34)
25
25
feature introduced in etcd version 3.4.
26
26
This guide will walk you through using etcd learner mode with kubeadm. By default, kubeadm runs
27
27
a local etcd instance on each control plane node.
@@ -52,27 +52,27 @@ in Kubernetes clusters:
52
52
在 Kubernetes 集群中采用 etcd learner 模式具有以下几个优点:
53
53
54
54
<!--
55
-
1. **Enhanced Resilience**: etcd learner nodes are non-voting members that catch up with
56
-
the leader's logs before becoming fully operational. This prevents new cluster members
57
-
from disrupting the quorum or causing leader elections, making the cluster more resilient
58
-
during membership changes.
59
-
2. **Reduced Cluster Unavailability**: Traditional approaches to adding new members often
60
-
result in cluster unavailability periods, especially in slow infrastructure or misconfigurations.
61
-
etcd learner mode minimizes such disruptions.
62
-
3. **Simplified Maintenance**: Learner nodes provide a safer and reversible way to add or replace
63
-
cluster members. This reduces the risk of accidental cluster outages due to misconfigurations or
To check if the Kubernetes control plane is healthy, run `kubectl get node -l node-role.kubernetes.io/control-plane=`
159
159
and check if the nodes are ready.
160
-
161
-
Note: It is recommended to have an odd number of members in a etcd cluster.
162
-
163
-
Before joining a worker node to the new Kubernetes cluster, ensure that the control plane nodes are healthy.
164
160
-->
165
161
要检查 Kubernetes 控制平面是否健康,运行 `kubectl get node -l node-role.kubernetes.io/control-plane=`
166
162
并检查节点是否就绪。
167
163
168
-
注意:建议在 etcd 集群中的成员个数为奇数。
164
+
{{< note >}}
165
+
<!--
166
+
It is recommended to have an odd number of members in an etcd cluster.
167
+
-->
168
+
建议在 etcd 集群中的成员个数为奇数。
169
+
{{< /note >}}
169
170
171
+
<!--
172
+
Before joining a worker node to the new Kubernetes cluster, ensure that the control plane nodes are healthy.
173
+
-->
170
174
在将工作节点接入新的 Kubernetes 集群之前,确保控制平面节点健康。
171
175
172
176
<!--
173
177
## What's next
174
178
175
179
- The feature gate `EtcdLearnerMode` is alpha in v1.27 and we expect it to graduate to beta in the next
176
-
minor release of Kubernetes (v1.29).
177
-
- etcd has an open issue that may make the process more automatic:
180
+
minor release of Kubernetes (v1.29).
181
+
- etcd has an open issue that may make the process more automatic:
178
182
[Support auto-promoting a learner member to a voting member](https://github.com/etcd-io/etcd/issues/15107).
179
-
- Learn more about the kubeadm [configuration format](/docs/reference/config-api/kubeadm-config.v1beta3/) here.
183
+
- Learn more about the kubeadm [configuration format](/docs/reference/config-api/kubeadm-config.v1beta3/).
180
184
-->
181
185
## 接下来的步骤 {#whats-next}
182
186
@@ -190,7 +194,9 @@ Before joining a worker node to the new Kubernetes cluster, ensure that the cont
190
194
191
195
Was this guide helpful? If you have any feedback or encounter any issues, please let us know.
192
196
Your feedback is always welcome! Join the bi-weekly [SIG Cluster Lifecycle meeting](https://docs.google.com/document/d/1Gmc7LyCIL_148a9Tft7pdhdee0NBHdOfHS1SAF0duI4/edit)
193
-
or weekly [kubeadm office hours](https://docs.google.com/document/d/130_kiXjG7graFNSnIAgtMS1G8zPDwpkshgfRYS0nggo/edit). Or reach us via [Slack](https://slack.k8s.io/) (channel **#kubeadm**), or the [SIG's mailing list](https://groups.google.com/g/kubernetes-sig-cluster-lifecycle).
197
+
or weekly [kubeadm office hours](https://docs.google.com/document/d/130_kiXjG7graFNSnIAgtMS1G8zPDwpkshgfRYS0nggo/edit).
198
+
Or reach us via [Slack](https://slack.k8s.io/) (channel **#kubeadm**), or the
0 commit comments