antrea-io / antrea

Kubernetes networking based on Open vSwitch
https://antrea.io
Apache License 2.0
1.67k stars 367 forks source link

Egress IP with AZ affinity #5252

Open cfillot opened 1 year ago

cfillot commented 1 year ago

Hello,

I have different AZ with a specific subnet for egress in each AZ. I create an External IP pool for each AZ with a node selector based on zone label. If I create many Egress IPs matching the same namespace and bound to each IP pool, an Egress IP is selected randomly, and exit traffic for an AZ can go through another AZ. It works, but unfortunately it's suboptimal and I would like that pods running in an AZ use the "local" Egress IP.

Is it possible to do something like that ? If not, is it a planned feature ?

Thanks for a lot for any suggestion.

tnqn commented 1 year ago

This is not supported yet, but we can think about how to improve. May I know what platform is the cluster run on?

cfillot commented 1 year ago

This is not supported yet, but we can think about how to improve. May I know what platform is the cluster run on?

Thanks a lot for your answer. It is a bare metal cluster running Kubernetes v1.26, Antrea v1.11.1 and MetalLB 0.13.9 (Debian Linux 11).

pdaccache commented 1 year ago

Hi plz can u advise how to make it work on aws? It is not outgoing using egressip, always using node ip

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days

github-actions[bot] commented 5 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment, or this will be closed in 90 days

antoninbas commented 3 months ago

I have opened a parent issue for this request (https://github.com/antrea-io/antrea/issues/6591), and it's a bit more generic and more detailed. But we can keep this one open as well for now.