k8s 集群卸载

彻底删除k8s集群

yum remove -y kubelet kubeadm kubectl
kubeadm reset -f
modprobe -r ipip
lsmod
rm -rf ~/.kube/
rm -rf /etc/kubernetes/
rm -rf /etc/systemd/system/kubelet.service.d
rm -rf /etc/systemd/system/kubelet.service
rm -rf /usr/bin/kube*
rm -rf /etc/cni
rm -rf /opt/cni
rm -rf /var/lib/etcd
rm -rf /var/etcd

卸载docker

yum remove containerd.io.x86_64 docker-ce.x86_64 docker-ce-cli.x86_64 docker-cerootless-extras.x86_64
docker-scan-plugin.x86_64

 # 检测是否删除成功
yum list installed | grep docker
docker version

相关文章:
卸载K8S集群

为者常成,行者常至