sync service-access-application-cluster configure-upgrade-etcd

Update configure-upgrade-etcd.md
pull/46569/head
xin gu 2024-05-29 08:56:47 +08:00
parent 7ed186cfba
commit 8bd42b4b35
2 changed files with 13 additions and 4 deletions

View File

@ -200,7 +200,9 @@ Here is the configuration file for the application Deployment:
对于请求成功的响应是一个 hello 消息:
```none
Hello Kubernetes!
Hello, world!
Version: 2.0.0
Hostname: hello-world-cdd4458f4-m47c8
```
<!--

View File

@ -616,17 +616,24 @@ When restoring the cluster, use the `--data-dir` option to specify to which fold
在恢复集群时,使用 `--data-dir` 选项来指定集群应被恢复到哪个文件夹。
```shell
ETCDCTL_API=3 etcdctl --data-dir <data-dir-location> snapshot restore snapshot.db
etcdutl --data-dir <data-dir-location> snapshot restore snapshot.db
```
<!--
where `<data-dir-location>` is a directory that will be created during the restore process.
Yet another example would be to first export the `ETCDCTL_API` environment variable:
The below example depicts the usage of the `etcdctl` tool for the restore operation:
-->
其中 `<data-dir-location>` 是将在恢复过程中创建的目录。
另一个例子是先导出 `ETCDCTL_API` 环境变量:
下面示例展示了如何使用 `etcdctl` 工具执行恢复操作:
{{< note >}}
<!--
The usage of `etcdctl` for restoring has been deprecated since etcd v3.5.x and may be removed from a future etcd release.
-->
自 etcd v3.5.x 版本起,使用 `etcdctl` 进行恢复的功能已被弃用,未来的可能会在 etcd 版本中被移除。
{{< /note >}}
```shell
export ETCDCTL_API=3