pod 网络使用的是 flannel ,corepod 总是处于 ContainerCreating 状态,pod 中的错误日志如下
Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "xxx" network for pod "coredns-58cc8c89f4-pwkls": networkPlugin cni failed to set up pod "coredns-58cc8c89f4-pwkls_kube-system" network: failed to set bridge addr: "cni0" already has an IP address different from 10.244.3.1/24
请问如何解决?
是同一网络环境中的2个k8s集群都使用 Flannel 网络且 pod-network-cidr 地址一样引起的,后来改用 Calico 网络解决了。