Skip to content

Commit

Permalink
Merge pull request #47299 from my-git9/pp-9089
Browse files Browse the repository at this point in the history
[zh-cn] sync configure-upgrade-etcd dns-debugging-resolution
  • Loading branch information
k8s-ci-robot authored Aug 5, 2024
2 parents 5454bac + 84c9754 commit 6a54897
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -782,10 +782,15 @@ either be a snapshot file from a previous backup operation, or from a remaining
<!--
If `<data-dir-location>` is the same folder as before, delete it and stop the etcd process before restoring the cluster.
Otherwise, change etcd configuration and restart the etcd process after restoration to have it use the new data directory.
Otherwise, change etcd configuration and restart the etcd process after restoration to have it use the new data directory:
first change `/etc/kubernetes/manifests/etcd.yaml`'s `volumes.hostPath.path` for `name: etcd-data` to `<data-dir-location>`,
then execute `kubectl -n kube-system delete pod <name-of-etcd-pod>` or `systemctl restart kubelet.service` (or both).
-->
如果 `<data-dir-location>` 与之前的文件夹相同,请先删除此文件夹并停止 etcd 进程,再恢复集群。
否则,在恢复后更改 etcd 配置并重启 etcd 进程将使用新的数据目录。
否则,在恢复后更改 etcd 配置并重启 etcd 进程将使用新的数据目录:
首先将 `/etc/kubernetes/manifests/etcd.yaml``name: etcd-data` 对应条目的
`volumes.hostPath.path` 改为 `<data-dir-location>`
然后执行 `kubectl -n kube-system delete pod <name-of-etcd-pod>``systemctl restart kubelet.service`(或两段命令都执行)。

{{% /tab %}}
{{< /tabs >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ kubectl get pods dnsutils
```

```
NAME READY STATUS RESTARTS AGE
NAME READY STATUS RESTARTS AGE
dnsutils 1/1 Running 0 <some-time>
```

Expand Down

0 comments on commit 6a54897

Please sign in to comment.