Skip to content

Commit

Permalink
Specify likely etcd restart steps for etcdctl-based restore. (#47167)
Browse files Browse the repository at this point in the history
* Specify likely etcd restart steps for etcdctl-based restore.

* Specify likely etcd restart steps for etcdctl-based restore.

* Update configure-upgrade-etcd.md
  • Loading branch information
dr0ptp4kt committed Jul 26, 2024
1 parent 40d9723 commit 0e55112
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,9 @@ 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).

{{% /tab %}}
{{< /tabs >}}
Expand Down

0 comments on commit 0e55112

Please sign in to comment.