1 彻底删除 k8s
kubeadm reset -f
systemctl stop kubelet
yum remove -y kubelet kubeadm kubectl
systemctl daemon-reload

modprobe -r ipip
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/lib/kubelet/
rm -rf /var/etcd


如果是使用etcdadm安装的外部etcd
etcdadm reset

卸载完成后,在次安装时需要重新推送证书


2 K8s 1.16.6 安装部署
分类: K8s