• master和slave节点都需要卸载清理

1. 卸载k8s

kubeadm reset -f

2. 清理残余

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
yum -y remove kube*

3. 更新镜像

yum clean all
yum -y update
yum makecache

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐