
Fully resetting Kubernetes
When you work with Kubernetes, you sometimes need to reset it with kubeadm reset.
But even after a proper reset, CNI pieces and leftover data can remain, so you have to delete those by hand.
Run the commands below on every node and then reboot.
systemctl stop kubelet
systemctl stop containerd
ip link delete cni0
ip link delete flannel.1
rm -rf /var/lib/cni/
rm -rf /run/flannel
rm -rf /etc/cni
rm -rf ~/.kube
init 6
Comments 0
A nickname and a password are required. The same password edits or deletes the comment later. Comments appear after a review.