- Joined
- Apr 16, 2020
- Messages
- 2,947
Does anyone here understand how Kubernetes routes? Or perhaps how its meant to route
I have a container on 172.16.0.y/24 on a Scale host 192.168.38.32/24. I have a DNS Server on 192.168.38.10. My firewall / internet gateway is 192.168.38.15
There is a traceroute above from the container to a local DNS Server it shows the leaves scale, hitting the gateway and then being redirected to the DNS Server.
Given the the DNS Server doesn't know anything about the 172.16.0.y/24 network and neither does the gateway. Unless the packet has a source address of 192.168.38.32:port_number then this couldn't work as no packets would ever return to the container.
As far as I am aware the 172.16.0.0/24 address range is NAT'd behind the 192.168.38.32 address so the outgoing packet would create a state table inside K3S so the returning packet would know which container to be directed to. But this means that packet 2 above has a source address of 192.168.38.32:port_number and that it should go direct to 192.168.38.10 as its on net.
This is clearly not happenning.
Anyone care to shed some light on this?
I have a container on 172.16.0.y/24 on a Scale host 192.168.38.32/24. I have a DNS Server on 192.168.38.10. My firewall / internet gateway is 192.168.38.15
There is a traceroute above from the container to a local DNS Server it shows the leaves scale, hitting the gateway and then being redirected to the DNS Server.
Given the the DNS Server doesn't know anything about the 172.16.0.y/24 network and neither does the gateway. Unless the packet has a source address of 192.168.38.32:port_number then this couldn't work as no packets would ever return to the container.
As far as I am aware the 172.16.0.0/24 address range is NAT'd behind the 192.168.38.32 address so the outgoing packet would create a state table inside K3S so the returning packet would know which container to be directed to. But this means that packet 2 above has a source address of 192.168.38.32:port_number and that it should go direct to 192.168.38.10 as its on net.
This is clearly not happenning.
Anyone care to shed some light on this?