-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Fix Sidecar egress TCP listener doesn't use auto allocated address #41311
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
47c9ff4
to
10de308
Compare
…en Port is specified When proxy metadata DNSCapture and DNSAutoAllocate are enabled, if Sidecar egress listener for TCP service is defined with port number, the generated sidecar outbound listener doesn't bind to auto allocated address(240.240.x.x).
Hi @l8huang, it seems that you moved the part of logic for |
@zhlsunshine I didn't move any part from |
&model.Port{ | ||
Name: "tcp", | ||
Port: tcpPort, | ||
Protocol: protocol.TCP, |
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.
Please also add case for http port
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.
HTTP uses hosts
to multiplex traffic, it doesn't have problem with bind to 0.0.0.0
; I propose covering HTTP case with another PR if it's required.
Hi @l8huang, I mean the specifications for
But the conditions are totally the same as |
@zhlsunshine That change actually fixes the issue which supposed to be fixed by this PR. |
@l8huang Yeah, so I think it's the concern. |
@hzxuzhonghu @zhlsunshine Thanks for your comments, is the PR good to merge? |
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.
LGTM
When proxy metadata DNSCapture and DNSAutoAllocate are enabled, if Sidecar egress listener for TCP service is defined with port number, the generated sidecar outbound listener doesn't bind to auto allocated address(240.240.x.x).
Ambient
Configuration Infrastructure
Docs
Installation
Networking
Performance and Scalability
Policies and Telemetry
Security
Test and Release
User Experience
Developer Infrastructure
Does not have any user-facing changes. This may include CLI changes, API changes, behavior changes, performance improvements, etc.