Я настроил модули с отслеживанием состояния, работающие на 2 разных рабочих узлах, и я не могу выполнить эхо-запрос модулей. Ниже приведен файл пула:
apiVersion: projectcalico.org/v3
kind: IPPool
metadata:
name: rack.ippool-1
spec:
cidr: 192.168.16.0/24
blockSize: 24
ipipMode: Never
natOutgoing: true
disabled: false
nodeSelector: all()
IP-конфигурация на 1-м модуле
ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc pfifo_fast state UP group default qlen 1000
link/ether 3e:a6:cb:15:cf:1a brd ff:ff:ff:ff:ff:ff
inet 192.168.16.41/32 brd 192.168.16.41 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::3ca6:cbff:fe15:cf1a/64 scope link
valid_lft forever preferred_lft forever
IP Conf на другом узле
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc pfifo_fast state UP group default qlen 1000
link/ether 1a:3c:c1:1a:fa:03 brd ff:ff:ff:ff:ff:ff
inet 192.168.16.42/32 brd 192.168.16.42 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::183c:c1ff:fe1a:fa03/64 scope link
valid_lft forever preferred_lft forever
Статус Ping
ping 192.168.16.41
PING 192.168.16.41 (192.168.16.41) 56(84) bytes of data.
Не работает
Я пробовал ipipMode: Always и CrossSu bnet, но ничего не получалось. Я не уверен, что мне не хватает. Кроме того, я не уверен, когда я дал размер блока 24, почему IP-адреса находятся в / 32 CIDR. Разве они не находятся в диапазоне / 24 CIDR?
[root@k8master-1 ~]# calicoctl node status
Calico process is running.
None of the BGP backend processes (BIRD or GoBGP) are running.
Результат Calico IPam
calicoctl ipam show
+----------+-----------------+-----------+------------+--------------+
| GROUPING | CIDR | IPS TOTAL | IPS IN USE | IPS FREE |
+----------+-----------------+-----------+------------+--------------+
| IP Pool | 10.244.0.0/16 | 65536 | 1 (0%) | 65535 (100%) |
| IP Pool | 192.168.16.0/24 | 256 | 3 (1%) | 253 (99%) |
+----------+-----------------+-----------+------------+--------------+
Блок IPam Calico
[root@k8master-1 ~]# calicoctl ipam show --show-blocks
+----------+-----------------+-----------+------------+--------------+
| GROUPING | CIDR | IPS TOTAL | IPS IN USE | IPS FREE |
+----------+-----------------+-----------+------------+--------------+
| IP Pool | 10.244.0.0/16 | 65536 | 1 (0%) | 65535 (100%) |
| Block | 10.244.0.0/26 | 64 | 1 (2%) | 63 (98%) |
| IP Pool | 192.168.16.0/24 | 256 | 3 (1%) | 253 (99%) |
| Block | 192.168.16.0/24 | 256 | 3 (1%) | 253 (99%) |
+----------+-----------------+-----------+------------+--------------+
Список заимствованных IP-адресов Calico
[root@k8master-1 ~]# calicoctl ipam show --show-borrowed
+---------------+----------------+-----------------+-------------+------+--------------------+
| IP | BORROWING-NODE | BLOCK | BLOCK OWNER | TYPE | ALLOCATED-TO |
+---------------+----------------+-----------------+-------------+------+--------------------+
| 192.168.16.39 | k8worker-2 | 192.168.16.0/24 | | pod | default/racnode1-0 |
| 192.168.16.41 | k8worker-2 | 192.168.16.0/24 | | pod | default/racnode1-0 |
| 192.168.16.42 | k8worker-1 | 192.168.16.0/24 | | pod | default/racnode2-0 |
+---------------+----------------+-----------------+-------------+------+--------------------+