kube-reset.sh
· 212 B · Bash
Raw
yes | kubeadm reset
systemctl stop kubelet crio
rm -rf /var/lib/cni/ /var/lib/kubelet/* /etc/cni/
nmcli conn down cni0
ip link del cni0
nmcli conn down flannel.1
ip link del flannel.1
systemctl start kubelet crio
1 | yes | kubeadm reset |
2 | systemctl stop kubelet crio |
3 | rm -rf /var/lib/cni/ /var/lib/kubelet/* /etc/cni/ |
4 | nmcli conn down cni0 |
5 | ip link del cni0 |
6 | nmcli conn down flannel.1 |
7 | ip link del flannel.1 |
8 | systemctl start kubelet crio |