15

首先,我使用 Flannel 和10.244.0.0.

然后我重置所有并重新启动10.84.0.0

不过界面flannel.1依旧10.244.1.0

我就是这样清理的:

kubeadm reset
systemctl stop kubelet
systemctl stop docker
rm -rf /var/lib/cni/
rm -rf /var/lib/kubelet/*
rm -rf /run/flannel
rm -rf /etc/cni/
ifconfig cni0 down
brctl delbr cni0
ifconfig flannel.1 down
systemctl start docker

我在重置中遗漏了什么吗?

4

2 回答 2

29

因为你的ip链接有旧记录

看看

ip link 你可以看到记录,如果你想清理旧法兰绒和cni的记录

请试试

ip link delete cni0 ip link delete flannel.1

于 2017-09-27T01:24:09.023 回答
0

在原始命令中:

brctl delbr cni0
# deletes the cni0 interface

但是ifconfig flannel.1 down并没有删除接口。因此:

ip link delete flannel.1
# deletes the flannel.1 interface
# also, 'ip link delete cni0' was unnecessary since the brctl command deleted the link
于 2019-02-21T04:53:12.860 回答