# kubectl get po -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-7858b7bdf-qfm88 0/1 ContainerCreating 0 93s
kube-system coredns-7858b7bdf-sfb46 0/1 ContainerCreating 0 93s
kube-system etcd-sealos-k8s-node-01 1/1 Running 4 14m
...
kube-system kube-scheduler-sealos-k8s-node-06 1/1 Running 1 10m
kube-system tiller-deploy-bfbf7585c-rsng9 0/1 ContainerCreating 0 6s
Warning FailedCreatePodSandBox 49s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "8e30c1f09cca90ddcd878f8e48f2b831114c4ec4903d6e880015f46fc069afe7" network for pod "kafka-0": networkPlugin cni failed to set up pod "kafka-0_default" network: failed to delegate add: failed to set bridge addr: "cni0" already has an IP address different from 10.244.4.1/24
...
从master 节点赋值到各个节点 /run/flannel
# cat /run/flannel/subnet.env
FLANNEL_NETWORK=10.244.0.0/16
FLANNEL_SUBNET=10.244.0.1/24 # 从原来集群拷贝过来的,与master 初始化生成subnet 网段不一样
FLANNEL_MTU=1450
FLANNEL_IPMASQ=true
-bash-4.2#
# 注意删除之后不会重新生成了网卡了,需要重启初始化集群,以前老的版本是自己会重启
ip link delete cni0
参考:https://blog.csdn.net/weixin_42562106/article/details/123749291