Created
July 2, 2020 11:16
-
-
Save velotiotech/53c5dd7737853b69fcc6e2888f72274a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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