- 已编辑
我是通过建立虚拟局域网将本地虚拟机和服务器连接起来的, 本地虚拟机已经作为节点加入了服务器的集群, 虚拟机上的其他pod都正常唯独calico-node部署不起来,
防火墙都关了, 本地虚拟机ping 10.233.0.1也正常
求dalao解惑, 感激不尽
work节点的calico-node日志如下:
2021-08-17 16:02:07.677 [INFO][8] startup/startup.go 376: Early log level set to info
2021-08-17 16:02:07.677 [INFO][8] startup/startup.go 392: Using NODENAME environment for node name
2021-08-17 16:02:07.678 [INFO][8] startup/startup.go 404: Determined node name: vm-home
2021-08-17 16:02:07.680 [INFO][8] startup/startup.go 436: Checking datastore connection
2021-08-17 16:02:37.681 [INFO][8] startup/startup.go 451: Hit error connecting to datastore - retry error=Get "https://10.233.0.1:443/api/v1/nodes/foo": dial tcp 10.233.0.1:443: i/o timeout
本地虚拟机的路由表:
Kernel IP routing table
ifconfig:
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
ether 02:42:82:89:95:14 txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.104 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::a00:27ff:fe77:622 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:77:06:22 txqueuelen 1000 (Ethernet)
RX packets 996222 bytes 1370287379 (1.2 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 489990 bytes 68509334 (65.3 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 150320 bytes 17229830 (16.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 150320 bytes 17229830 (16.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
zt7nner2ay: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 2800
inet 10.147.20.50 netmask 255.255.255.0 broadcast 10.147.20.255
inet6 fe80::e4fe:e8ff:fe17:448b prefixlen 64 scopeid 0x20<link>
ether 82:5f:ee:29:26:84 txqueuelen 1000 (Ethernet)
RX packets 345250 bytes 894781833 (853.3 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 290790 bytes 27769964 (26.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0