-
Notifications
You must be signed in to change notification settings - Fork 2.2k
refactor: change bind to all inbound #3069
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3069 +/- ##
==========================================
+ Coverage 86.21% 89.35% +3.13%
==========================================
Files 142 142
Lines 9503 9506 +3
==========================================
+ Hits 8193 8494 +301
+ Misses 1310 1012 -298
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
@JoanFM @deepankarm any objections? |
it seems good. It surprises me how it used to work before? Binding is always local to one self right? |
What I do not understand is then why In the meanwhile, u can simply set properly the I would wait for @deepankarm input on this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait for @deepankarm input
Because Note that this PR is not complete, if in those contexts |
That's wrong. We still need the |
To give some more motivation, imagine the following Flow:
You can now easily put them on different machines via setting |
Every parser behind these |
The
The Gateway also uses the Am I getting you right, if you would prefer to split the configuration into further mixins with these arguments specified more detailed and as low level as possible? |
* refactor: change bind to all inbound * refactor: use default host
This PR introduces the following change:
For all runtimes, the gateway will bind to all inbound connections on the localhost, i.e.
0.0.0.0
instead of the parameterargs.host
.This change is motivated by a use-case from kubernetes where the gateway host deployment is hidden behind a kubernetes service with corresponding dns (this is a typical kubernetes pattern).
Clients can reach the gateway via this dns from the outside but the host cannot bind to this address as it is the IP of the service not the deployment where the gateway runs.