题目介绍:
资料参考:
https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/configure-upgrade-etcd
解题:
1、备份
#参考模板列出 etcdctl 可用的各种选项。
#例如,你可以通过指定端点、证书和密钥来制作快照,如下所示:
#ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379 \
# --cacert=<trusted-ca-file> --cert=<cert-file> --key=<key-file> \
# snapshot save <backup-file-location>
ETCDCTL_API=3 etcdctl --endpoints https://127.0.0.1:2379 snapshot save /data/backup/etcd-snapshot.db