antrea-io / antrea

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

Egress IP with AZ affinity #5252

Open cfillot opened 11 months ago

cfillot commented 11 months 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 11 months 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 11 months 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 11 months 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 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 3 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 4 weeks 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