calico-node Init:0/3 状态
在一台使用 kubeadmin 安装的集群上,重新使用二进制安装后,出现 calico-node Init:0/3
通过kubectl logs 看日志
2021-03-12 10:00:15.695 [INFO][1] migrate.go 65: checking host-local IPAM data dir dir existence... 2021-03-12 10:00:15.695 [INFO][1] migrate.go 72: retrieving node for IPIP tunnel address 2021-03-12 10:00:15.699 [INFO][1] migrate.go 80: IPIP tunnel address not found, assigning... 2021-03-12 10:00:15.703 [ERROR][1] ipam_plugin.go 95: failed to migrate ipam, retrying... error=PodCIDR did not parse successfully: invalid CIDR address: node="master2" 2021-03-12 10:00:16.704 [INFO][1] migrate.go 65: checking host-local IPAM data dir dir existence... 2021-03-12 10:00:16.704 [INFO][1] migrate.go 72: retrieving node for IPIP tunnel address 2021-03-12 10:00:16.708 [INFO][1] migrate.go 80: IPIP tunnel address not found, assigning... 2021-03-12 10:00:16.711 [ERROR][1] ipam_plugin.go 95: failed to migrate ipam, retrying... error=PodCIDR did not parse successfully: invalid CIDR address: node="master2" 2021-03-12 10:00:17.711 [INFO][1] migrate.go 65: checking host-local IPAM data dir dir existence... 2021-03-12 10:00:17.711 [INFO][1] migrate.go 72: retrieving node for IPIP tunnel address 2021-03-12 10:00:17.716 [INFO][1] migrate.go 80: IPIP tunnel address not found, assigning... 2021-03-12 10:00:17.720 [ERROR][1] ipam_plugin.go 95: failed to migrate ipam, retrying... error=PodCIDR did not parse successfully: invalid CIDR address: node="master2" 2021-03-12 10:00:18.721 [INFO][1] migrate.go 65: checking host-local IPAM data dir dir existence... 2021-03-12 10:00:18.721 [INFO][1] migrate.go 72: retrieving node for IPIP tunnel address 2021-03-12 10:00:18.725 [INFO][1] migrate.go 80: IPIP tunnel address not found, assigning... 2021-03-12 10:00:18.729 [ERROR][1] ipam_plugin.go 95: failed to migrate ipam, retrying... error=PodCIDR did not parse successfully: invalid CIDR address: node="master2" 2021-03-12 10:00:19.729 [INFO][1] migrate.go 65: checking host-local IPAM data dir dir existence... 2021-03-12 10:00:19.729 [INFO][1] migrate.go 72: retrieving node for IPIP tunnel address 2021-03-12 10:00:19.734 [INFO][1] migrate.go 80
上一个集群残留的cni 配置文件路径为
/etc/cni/ /var/lib/cni /opt/cni
/var/lib/calico
删除三个目录后, calico可以创建