master节点将node节点踢出

$ kubectl drain <node name> --delete-local-data --force --ignore-daemonsets
$ kubectl delete node <node name>

卸载K8s

$ kubeadm reset -f
$ yum remove -y kubeadm-1.16.0-0 kubelet-1.16.0-0
$ rm -rf /etc/cni /etc/kubernetes /var/lib/dockershim /var/lib/etcd /var/lib/kubelet /var/run/kubernetes ~/.kube/*
$ systemctl restart docker
点赞(1)

评论列表 共有 0 评论

暂无评论