首先,我使用Flannel和10.244.0.0启动Kubernetes。
然后,我全部重置并使用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我是不是在重置中遗漏了什么?
发布于 2017-09-27 09:24:09
因为您的ip链接具有旧记录
看一看
你可以看到记录,如果你想清理旧法兰绒和ip link的记录
请尝试
ip link delete cni0 ip link delete flannel.1
发布于 2019-02-21 12:53:13
在原始命令中:
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 linkhttps://stackoverflow.com/questions/46276796
复制相似问题