Skip to content

Instantly share code, notes, and snippets.

@skynet86
Created May 10, 2020 14:21
Show Gist options
  • Save skynet86/94558ff9c87ddfad7dc6f2c70eee3656 to your computer and use it in GitHub Desktop.
Save skynet86/94558ff9c87ddfad7dc6f2c70eee3656 to your computer and use it in GitHub Desktop.
Restore your Cluster
ETCDCTL_API=3 etcdctl \
--endpoints=https://172.17.0.9:2379 \
--cacert=/etc/kubernetes/pki/etcd/ca.crt \
--name=master \
--cert=/etc/kubernetes/pki/etcd/server.crt \
--key=/etc/kubernetes/pki/etcd/server.key \
--data-dir /var/lib/etcd-from-backup \
--initial-cluster=master=https://127.0.0.1:2380 \
--initial-cluster-token etcd-cluster-new \
--initial-advertise-peer-urls=https://127.0.0.1:2380 \
snapshot restore /tmp/snapshot-backup.db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment