Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Support configuring externalTrafficPolicy on the envoy service #2432

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

timricese
Copy link
Contributor

What type of PR is this?
Adds possibility to configure externalTrafficPolicy on EnvoyProxy Service objects.

What this PR does / why we need it:

Currently there is no way to change the default "Local" externalTrafficPolicy, which is fine for the vast majority of use cases.

In our case, we run bare-metal without any cloud loadbalancer and rely on MetalLB and Cilium with "Cluster" externalTrafficPolicy to provide loadbalancing within the cluster. Without this, all requests arrive at one single envoy pod.

Which issue(s) this PR fixes:

@timricese timricese requested a review from a team as a code owner January 11, 2024 14:43
@timricese timricese force-pushed the externaltrafficpolicy branch from cfd983d to 89c7a53 Compare January 11, 2024 15:28
@timricese timricese force-pushed the externaltrafficpolicy branch from 89c7a53 to b9f625d Compare January 11, 2024 15:30
Copy link

codecov bot commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c9d5e33) 64.65% compared to head (810986a) 64.70%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2432      +/-   ##
==========================================
+ Coverage   64.65%   64.70%   +0.04%     
==========================================
  Files         115      115              
  Lines       17364    17367       +3     
==========================================
+ Hits        11227    11237      +10     
+ Misses       5425     5419       -6     
+ Partials      712      711       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks !

@arkodg arkodg requested review from a team January 12, 2024 00:15
@zirain zirain merged commit 1e57665 into envoyproxy:main Jan 12, 2024
20 checks passed
zesiar0 pushed a commit to zesiar0/gateway that referenced this pull request Jan 22, 2024
…nvoyproxy#2432)

* Support configuring externalTrafficPolicy on the envoy service

Signed-off-by: Tim Rice <[email protected]>

* Update some autogenerated things

Signed-off-by: Tim Rice <[email protected]>

---------

Signed-off-by: Tim Rice <[email protected]>
Co-authored-by: Tim Rice <[email protected]>
Signed-off-by: A3bz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants