mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-08-09 04:12:41 +03:00
Update etcd-backup-and-restore.md
This commit is contained in:
@@ -30,7 +30,7 @@ mv /tmp/etcd-download-test/etcdctl /usr/bin
|
||||
```
|
||||
ETCDCTL_API=3 etcdctl --endpoints=https://[127.0.0.1]:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt \
|
||||
--cert=/etc/kubernetes/pki/etcd/server.crt --key=/etc/kubernetes/pki/etcd/server.key \
|
||||
snapshot save /tmp/snapshot-pre-boot.db
|
||||
snapshot save /opt/snapshot-pre-boot.db
|
||||
```
|
||||
|
||||
# -----------------------------
|
||||
@@ -47,7 +47,7 @@ ETCDCTL_API=3 etcdctl --endpoints=https://[127.0.0.1]:2379 --cacert=/etc/kuberne
|
||||
--initial-cluster=master=https://127.0.0.1:2380 \
|
||||
--initial-cluster-token=etcd-cluster-1 \
|
||||
--initial-advertise-peer-urls=https://127.0.0.1:2380 \
|
||||
snapshot restore /tmp/snapshot-pre-boot.db
|
||||
snapshot restore /opt/snapshot-pre-boot.db
|
||||
```
|
||||
|
||||
# 4. Modify /etc/kubernetes/manifests/etcd.yaml
|
||||
|
Reference in New Issue
Block a user