This procedure is based on the official Etcd disaster recovery procedure from etcd.io documentation.
This method is based on an Ansible playbook.
- Place the snapshot to restore in the
artifact
subdirectory, under the namelatest-etcd.snapshot
. - Run the restoration playbook:
ansible-playbook -i artifacts/kubernetes-inventory.yml ansible-playbooks/etcd-snapshot-restore.yaml # 【output】 # ... truncated ... # paas-staging-etcd-96640-adchh : ok=10 changed=8 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 # paas-staging-etcd-96640-wjxyn : ok=10 changed=8 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 # paas-staging-etcd-96640-zdhxs : ok=10 changed=8 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 #
- Check your Kubernetes workload status