首先清理运行到k8s群集中的pod,使用,
$ kubectl delete node --all
然后从主机系统中删除数据卷和备份(如果不需要)。最后,可以使用脚本停止所有k8s服务,
$ for service in kube-apiserver kube-controller-manager kubectl kubelet kube-proxy kube-scheduler; do systemctl stop $service done $ yum -y remove kubernetes #if it's registered as a service