Kubernetes cannot cleanup Flannel Kubernetes cannot cleanup Flannel kubernetes kubernetes

Kubernetes cannot cleanup Flannel


Because your ip link have the old record

look by

ip linkyou can see the record, and if you want to clean the record of old flannel and cni

please try

ip link delete cni0ip link delete flannel.1


In the original commands:

brctl delbr cni0# deletes the cni0 interface

But the ifconfig flannel.1 down did not remove the interface. Thus:

ip link delete flannel.1# deletes the flannel.1 interface# also, 'ip link delete cni0' was unnecessary since the brctl command deleted the link