Kubernetes Views 3

Fully resetting Kubernetes

Fully resetting Kubernetes image 1

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

Reactions

Comments 0

A nickname and a password are required. The same password edits or deletes the comment later. Comments appear after a review.

Comments appear after a review. The password is used again to edit or delete.