还原k8s控制节点
0、基础环境配置
参照节点建立搭建配置
1、从旧控制节点拷贝
/opt/kubernets
/usr/local/bin/kubectl
/usr/lib/systemd/system/etcd.service
/usr/lib/systemd/system/kube-apiserver.service
/usr/lib/systemd/system/kube-controller-manager.service
/usr/lib/systemd/system/kubelet.service
/usr/lib/systemd/system/kube-proxy.service
/usr/lib/systemd/system/kube-scheduler.service
/root/.kube
/etc/kubernetes/admin.conf
/etc/hosts
2、修改IP地址
systemctl enable etcd --now
systemctl enable --now kube-apiserver.service kube-controller-manager.service kubelet.service kube-proxy.service kube-scheduler.service