k8s的node节点启动flannel网络报错
k8s的node节点启动flannel网络报错[root@dk03 ~]# systemctl status flanneld.service -l● flanneld.service - Flanneld overlay address etcd agentLoaded: loaded (/usr/lib/systemd/system/flanneld.service; enabled; ven
·
k8s的node节点启动flannel网络报错
[root@dk03 ~]# systemctl status flanneld.service -l
● flanneld.service - Flanneld overlay address etcd agent
Loaded: loaded (/usr/lib/systemd/system/flanneld.service; enabled; vendor preset: disabled)
Active: activating (start) since Wed 2020-07-15 13:42:33 CST; 42s ago
Main PID: 26442 (flanneld)
Memory: 19.0M
CGroup: /system.slice/flanneld.service
└─26442 /usr/bin/flanneld -etcd-endpoints=http://192.168.247.31:2379 -etcd-prefix=/atomic.io/network
Jul 15 13:43:11 dk03 flanneld-start[26442]: I0715 13:43:11.672337 26442 local_manager.go:179] Picking subnet in range 192.168.1.128 ... 192.168.1.128
Jul 15 13:43:11 dk03 flanneld-start[26442]: E0715 13:43:11.672391 26442 network.go:102] failed to register network: failed to acquire lease: out of subnets
Jul 15 13:43:12 dk03 flanneld-start[26442]: I0715 13:43:12.680633 26442 local_manager.go:179] Picking subnet in range 192.168.1.128 ... 192.168.1.128
Jul 15 13:43:12 dk03 flanneld-start[26442]: E0715 13:43:12.680747 26442 network.go:102] failed to register network: failed to acquire lease: out of subnets
Jul 15 13:43:13 dk03 flanneld-start[26442]: I0715 13:43:13.688856 26442 local_manager.go:179] Picking subnet in range 192.168.1.128 ... 192.168.1.128
Jul 15 13:43:13 dk03 flanneld-start[26442]: E0715 13:43:13.688954 26442 network.go:102] failed to register network: failed to acquire lease: out of subnets
Jul 15 13:43:14 dk03 flanneld-start[26442]: I0715 13:43:14.700228 26442 local_manager.go:179] Picking subnet in range 192.168.1.128 ... 192.168.1.128
Jul 15 13:43:14 dk03 flanneld-start[26442]: E0715 13:43:14.700324 26442 network.go:102] failed to register network: failed to acquire lease: out of subnets
Jul 15 13:43:15 dk03 flanneld-start[26442]: I0715 13:43:15.707832 26442 local_manager.go:179] Picking subnet in range 192.168.1.128 ... 192.168.1.128
Jul 15 13:43:15 dk03 flanneld-start[26442]: E0715 13:43:15.707872 26442 network.go:102] failed to register network: failed to acquire lease: out of subnets
提示应该是子网段注册失败
解决:
本地地址是24位掩码,flannel网络也是24位,将flannel网络掩码改了16位,再启动node节点的flannel服务
[root@dk01 ~]# etcdctl update /atomic.io/network/config '{ "Network": "192.168.1.0/16" }'
{ "Network": "192.168.1.0/16" }
[root@dk01 ~]# etcdctl get /atomic.io/network/config
{ "Network": "192.168.1.0/16" }
更多推荐
已为社区贡献1条内容
所有评论(0)