Skip to content

Commit

Permalink
Update configure-upgrade-etcd.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0ptp4kt authored Jul 25, 2024
1 parent 143a1ff commit 763f0f0
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +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.
Usually, this means `/etc/kubernetes/manifests/etcd.yaml`'s `volumes.hostPath.path` for `name: etc-data` becomes `<data-dir-location>`.
Next, `kubectl -n kube-system delete pod <name-of-etcd-pod>` or `systemctl restart kubelet.service` or both may be needed.
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 763f0f0

Please sign in to comment.