在每台etcd节点上执行备份脚本
/opt/etcd/etcd_backup.sh
在每台etcd节点上执行以下操作
- 1.停止kube-apiserver(master节点)和etcd服务
systemctl stop kube-api-server
systemctl stop etcd
- 2.修改
/opt/etcd/etcd_restore.sh
中备份文件的路径,接着执行恢复脚本
/opt/etcd/etcd_restore.sh
- 3.启动kube-apiserver和etcd服务
systemctl start kube-apiserver
systemctl start etcd
- 4.查看kube-apiserver和etcd服务状态
systemctl status kube-apiserver
systemctl status etcd
/opt/etcd/etcd.sh