Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created July 2, 2020 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/53c5dd7737853b69fcc6e2888f72274a to your computer and use it in GitHub Desktop.
Save velotiotech/53c5dd7737853b69fcc6e2888f72274a to your computer and use it in GitHub Desktop.
docker run --rm \
-v '/data/backup:/backup' \
-v '/var/lib/etcd:/var/lib/etcd' \
--env ETCDCTL_API=3 \
k8s.gcr.io/etcd:3.2.24' \
/bin/sh -c "etcdctl snapshot restore '/backup/etcd-snapshot-2018-12-09_11:12:05_UTC.db' ; mv /default.etcd/member/ /var/lib/etcd/"
kubeadm init --ignore-preflight-errors=DirAvailable--var-lib-etcd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment