美文网首页
"cni0" already has an IP address

"cni0" already has an IP address

作者: wwq2020 | 来源:发表于2023-09-24 10:35 被阅读0次

    背景

    网络插件使用flannel的k8s集群,出错报错network: failed to delegate add: failed to set bridge addr: "cni0" already has an IP address different from

    解决

    删除网络设备

    ifconfig cni0 down
    ifconfig flannel.1 down
    ip link delete cni0
    ip link delete flannel.1
    

    重建此节点的flannel pod

    kubectl delete pod -n kube-system ${podname}

    相关文章

      网友评论

          本文标题:"cni0" already has an IP address

          本文链接:https://www.haomeiwen.com/subject/ddjtbdtx.html