k8s卸载
1、停止相关服务
systemctl stop kubelet
systemctl stop etcd
systemctl stop docker
2、卸载k8s
kubeadm reset -f
3、删除k8s相关目录
(1)modprobe -r ipip
(2)lsmod
sudo rm -rvf ~/.kube
sudo rm -rvf ~/.kube/
sudo rm -rvf /etc/kubernetes/
sudo rm -rvf /etc/systemd/system/kubelet.service.d
sudo rm -rvf /etc/systemd/system/kubelet.service
sudo rm -rvf /usr/bin/kube*
sudo rm -rvf /etc/cni
sudo rm -rvf /opt/cni
sudo rm -rvf /var/lib/etcd
sudo rm -rvf /var/etcd
docker kill $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi -f $(docker images -q)
4、卸载k8s相关程序
yum -y remove kube*
5、更新
yum clean all
yum -y update
yum makecache