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
Copy file name to clipboardExpand all lines: content/zh/docs/tasks/administer-cluster/configure-upgrade-etcd.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -389,6 +389,19 @@ Before starting the restore operation, a snapshot file must be present. It can e
389
389
If the access URLs of the restored cluster is changed from the previous cluster, the Kubernetes API server must be reconfigured accordingly. In this case, restart Kubernetes API server with the flag `--etcd-servers=$NEW_ETCD_CLUSTER` instead of the flag `--etcd-servers=$OLD_ETCD_CLUSTER`. Replace `$NEW_ETCD_CLUSTER` and `$OLD_ETCD_CLUSTER` with the respective IP addresses. If a load balancer is used in front of an etcd cluster, you might need to update the load balancer instead.
390
390
391
391
If the majority of etcd members have permanently failed, the etcd cluster is considered failed. In this scenario, Kubernetes cannot make any changes to its current state. Although the scheduled pods might continue to run, no new pods can be scheduled. In such cases, recover the etcd cluster and potentially reconfigure Kubernetes API server to fix the issue.
392
+
393
+
{{< note >}}
394
+
If any API servers are running in your cluster, you should not attempt to restore instances of etcd.
395
+
Instead, follow these steps to restore etcd:
396
+
397
+
- stop *all* kube-apiserver instances
398
+
- restore state in all etcd instances
399
+
- restart all kube-apiserver instances
400
+
401
+
We also recommend restarting any components (e.g. kube-scheduler, kube-controller-manager, kubelet) to ensure that they don't
402
+
rely on some stale data. Note that in practice, the restore takes a bit of time.
403
+
During the restoration, critical components will lose leader lock and restart themselves.
0 commit comments