参考:https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/configure-upgrade-etcd/
涉及ssl认证无法通过或127.0.0.1:2379无法通过情况可以直接找到etcd的db库进行备份
vim /etc/kubernetes/manifests/etcd.yaml 查看db存放位置
mv /etc/kubernetes/manifests/kube-* /srv/data/etcd/ 备份启动文件
cp -a /var/lib/etcd/* /srv/data/etcd/ 备份数据
还原:
vim /etc/kubernetes/manifests/etcd.yaml 修改hostpath地址为/srv/data/etcd
mv /srv/data/etcd/kube-* /etc/kubernetes/manifests/ 恢复启动文件
systemctl restart kubelet.service 重启kubelet
等待几分钟验证结果
kubectl get nodes
标签:kubernetes,备份,manifests,etc,还原,etcd,data From: https://www.cnblogs.com/JASON-yul/p/17613018.html