-
Notifications
You must be signed in to change notification settings - Fork 2k
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
client/connect: ConsulProxy LocalServicePort/Address #6358
Conversation
@@ -1,12 +1,15 @@ | |||
job "foo" { | |||
datacenters = ["dc1"] | |||
|
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.
I used hclfmt
to clean up my own changes and it turns out this file was dirty. Apologies for the review noise.
Would it be at all valuable to expose these as a |
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.
Suggestions are just suggestions although we should get rid of those TODO and add these fields to https://www.nomadproject.io/docs/job-specification/proxy.html
5a36f83
to
074aa45
Compare
Without a `LocalServicePort`, Connect services will try to use the mapped port even when delivering traffic locally. A user can override this behavior by pinning the port value in the `service` stanza but this prevents us from using the Consul service name to reach the service. This commits configures the Consul proxy with its `LocalServicePort` and `LocalServiceAddress` fields.
074aa45
to
9a0f8a4
Compare
@schmichael thanks for catching those TODOs and suggesting some good language for them! I've addressed your comments, including adding docs here |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
Fixes #6337
Without a
LocalServicePort
, Connect services will try to use the mapped port even when delivering traffic locally. A user can override this behavior by pinning the port value in theservice
stanza but this prevents us from using the Consul service name to reach the service.This commits configures the Consul proxy with its
LocalServicePort
andLocalServiceAddress
fields.