bpf: remove cilium_host ip addr scope link#21738
bpf: remove cilium_host ip addr scope link#21738liuxu623 wants to merge 1 commit intocilium:masterfrom
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
make iptables masquerade choose cilium_host ip addr when access service external ip (backend is a pod in another node) in a pod Signed-off-by: liuxu <liuxu623@gmail.com>
|
@borkmann Hi, could you take a look? |
pchaigno
left a comment
There was a problem hiding this comment.
Could you explain in the commit description why you are making this change? Is it fixing a bug and, if so, what is the bug?
The bug is when access service external ip / node port in a pod, and backend is a pod in another node, reply package will not through cilium_vxlan, it maybe drop by network device like router, you can see #21737 more details. |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
I confirm the bug and fix. We use metallb in ARP mode, and access from a pod in the cluster to a loadbalancer IP only works from the node elected as leader for the given IP. Once the scope of |
|
This pull request has been automatically marked as stale because it |
|
This PR is not stale. The "link" scope was added 4 years ago by 2d099f4 (#1614). @tgraf @aanm @aalemayhu Any input on this PR? |
pchaigno
left a comment
There was a problem hiding this comment.
My above review is still valid.
|
I hit this same bug in a different context, so I resubmitted this as #23241, with a proper commit description. |
make iptables masquerade choose cilium_host ip addr when access service external ip (backend is a pod in another node) in a pod
Fixes: #21737