Blog icon indicating copy to clipboard operation
Blog copied to clipboard

plugin flannel does not support config version的错误

Open zj1244 opened this issue 5 years ago • 0 comments

报错

在master上看node发现NotReady,接着去问题node查看日志【journalctl -f -u kubelet】,提示 image

原因

从网上查到,应该是/etc/cni/net.d/10-flannel.conf文件里少了cniVersion版本,加上就可以解决。

[root@security ops]# cat /etc/cni/net.d/10-flannel.conf
{
  "name": "cbr0",
"cniVersion": "0.2.0",
  "type": "flannel",
  "delegate": {
    "isDefaultGateway": true
  }
}
[root@security ops]# systemctl daemon-reload

zj1244 avatar Jan 13 '20 07:01 zj1244