搭建longhorn报错“failed to set bridge addr”

报错,longhorn容器拉不起
[root@centos218 ~]#kubectl -n longhorn-system get pod
NAME READY STATUS RESTARTS AGE
engine-image-ei-ee18f965-hxx4n 0/1 ImagePullBackOff 0 47m
engine-image-ei-ee18f965-njkmx 1/1 Running 0 47m
engine-image-ei-ee18f965-r8jn6 1/1 Running 0 47m
instance-manager-e-2d5714ad 1/1 Running 0 47m
instance-manager-e-543df120 1/1 Running 0 47m
instance-manager-r-c90d6ea0 1/1 Running 0 47m
instance-manager-r-fdefd769 1/1 Running 0 47m
longhorn-driver-deployer-6b7d76659f-jbbtv 0/1 Init:0/1 0 51m
longhorn-manager-8hzfc 1/1 Running 5 51m
longhorn-manager-h4cpk 1/1 Running 5 51m
longhorn-manager-wkbdp 0/1 ImagePullBackOff 0 51m
longhorn-ui-68b99bd456-4mkxl 1/1 Running 1 51m

[root@centos218 ~]#kubectl -n longhorn-system describe pod longhorn-manager-wkbdp
。。。。。。。
Warning FailedCreatePodSandBox 109s (x2183 over 51m) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "c5e014ff3ceecd22d8b45791c0d6ab019dd30a7659fa9ad4d3ea147324c7310b" network for pod "longhorn-manager-wkbdp": networkPlugin cni failed to set up pod "longhorn-manager-wkbdp_longhorn-system" network: failed to set bridge addr: "cni0" already has an IP address different from 10.244.3.1/24

#解决方案
经排查,后加入的节点与之前加入节点的cni0冲突
解决方法一:修改网卡为另一个
解决方法方法二: 删除重启服务,重新生成cni0
ifconfig cni0 down /ip link set cni0 down
ip link delete cni0

上一篇:Error running 'tomcat': Unknown error


下一篇:ALG 2-1: Computational Tractability (计算复杂性理论)