卸载 Kubernetes

卸载Kubernetes

新建脚本(来源于网络)

vim rest-k8s

#!/bin/bash
kubeadm reset -f
modprobe -r ipip
lsmod
rm -rf ~/.kube/
rm -rf $HOME/.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 kubeadm-1.18.3 kubectl-1.18.3 kubelelst-1.18.3

赋权

chmod 777  rest-k8s

你可能感兴趣的:(Kubernetes,kubernetes)