In my Kubernetes cluster, I have about 15 servers located across 4 different subnets:
- Subnet 1: worker-node1-3 and ingress-node1-3
- Subnet 2: worker-node4-6
- Subnet 3: worker-node7-9
- Subnet 4: master-node4-6
Kubernetes version 1.26.6.
Operating System: RHEL 8 Question:
How can I configure Kubernetes components so that from the IP address of a pod on worker-node7, I can reach a pod on worker-node2?
For example:
telnet -b 10.244.15.5 10.244.13.31 9090
Where:
10.244.15.5 is the IP address of a busybox pod (on node worker-node7 - Subnet 3). 10.244.13.31 is the IP address of a pod (on node worker-node2 - Subnet 1) with port 9090 open (used for metrics). Additional Information:
Network Access: Network access is open between subnets. For example, Geneve traffic is allowed (nc -uzvw5 worker-node2 6081 succeeds).
CNI Plugin: Antrea is used as the CNI plugin with the following modified base settings in the configuration file:
tunnelType: geneve trafficEncapMode: "hybrid"
IP Forwarding: IP forwarding is enabled on both nodes:
net.ipv4.ip_forward = 1
kube-proxy Configuration: Masquerading is enabled in the kube-proxy configuration:
iptables: masqueradeAll: true
Observation:
If the busybox pod is placed on worker-node1 (in the same subnet as worker-node2), then the corresponding telnet connection succeeds. Request for Assistance:
Please help with what else can be adjusted in the configuration?