Skip to content

Commit 6d4f278

Browse files
authored
Merge pull request #30683 from h4ghhh/fix_etcd_restore_zh
[zh] Add an example for restoring etcd cluster
2 parents 2f4e2f5 + 3314d31 commit 6d4f278

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

content/zh/docs/tasks/administer-cluster/configure-upgrade-etcd.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,12 @@ etcd 支持从 [major.minor](http://semver.org/) 或其他不同 patch 版本的
645645
ETCDCTL_API=3 etcdctl --endpoints 10.2.0.9:2379 snapshot restore snapshotdb
646646
```
647647

648+
恢复时也可以指定操作选项,例如:
649+
650+
```
651+
ETCDCTL_API=3 etcdctl --data-dir <data-dir-location> snapshot restore snapshotdb
652+
```
653+
648654
有关从快照文件还原集群的详细信息和示例,请参阅
649655
[etcd 灾难恢复文档](https://etcd.io/docs/current/op-guide/recovery/#restoring-a-cluster)
650656

@@ -665,4 +671,4 @@ ETCDCTL_API=3 etcdctl --endpoints 10.2.0.9:2379 snapshot restore snapshotdb
665671
我们还建议重启所有组件(例如 `kube-scheduler``kube-controller-manager``kubelet`),以确保它们不会
666672
依赖一些过时的数据。请注意,实际中还原会花费一些时间。
667673
在还原过程中,关键组件将丢失领导锁并自行重启。
668-
{{< note >}}
674+
{{< /note >}}

0 commit comments

Comments
 (0)