You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, we are currently running flannel v0.22.3 (with --ip-masq=true) and seeing incorrect pod IPs for the pods that run in pod network.
For example, here you can see the server pod on node1.foo.com receiving the request from client pod that is on node2.foo.com but logs the client pod's IP as 100.96.125.1 instead of 100.101.114.41
❯ k get po pod1 -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
pod1 1/1 Running 0 2m45s 100.96.125.82 node1.foo.com <none> <none>
❯ k exec -it pod1 -- /bin/bash
pod1:/root$ hostname -i
100.96.125.82
pod1:/root$ python3
python3 python3.12
pod1:/root$ python3 -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
100.96.125.1 - - [06/Jan/2025 23:09:55] "GET / HTTP/1.1" 200 -
❯ k get po pod2 -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
pod2 1/1 Running 1 (2m41s ago) 5m48s 100.101.114.41 node2.foo.com <none> <none>
❯ k exec -it pod2 -- /bin/bash
pod2:/root$ hostname -i
100.101.114.41
pod2:/root$ curl -I http://100.96.125.82:8000/
HTTP/1.0 200 OK
Server: SimpleHTTP/0.6 Python/3.12.3
Date: Mon, 06 Jan 2025 23:11:06 GMT
Content-type: text/html; charset=utf-8
Content-Length: 304
debug info for node1.foo.com (has PodCIDR 100.96.125.0/25):
It's strange that you are having multiple MASQUERADE rules on the first node. How did you setup flannel? Did you clean the iptables rules when you started kubernetes?
flannel along with other node components were installed after a fresh reimage. Node also get reimaged periodically to keep the OS up to date. Also, flannel was upgraded form 0.0.36 to 0.22.3 - not sure if this major bump would result in redundant iptable rules
Hi, we are currently running flannel
v0.22.3
(with--ip-masq=true
) and seeing incorrect pod IPs for the pods that run in pod network.For example, here you can see the server pod on
node1.foo.com
receiving the request from client pod that is onnode2.foo.com
but logs the client pod's IP as100.96.125.1
instead of100.101.114.41
debug info for
node1.foo.com
(has PodCIDR100.96.125.0/25
):debug info for
node1.foo.com
(has PodCIDR100.101.114.0/25
):Any ideas on what might be causing this?
The text was updated successfully, but these errors were encountered: