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

Use port's to value when building service address under 'alloc' addr_mode #9739

Merged
merged 3 commits into from
Jan 7, 2021

Conversation

nickethier
Copy link
Member

This PR changes the behavior of a how the service address is built for services configured with the new alloc addr_mode. Previously the alloc's IP and the host port value were used. With this change, the mapped to value of the port is used, falling back to the host's value if to is not set.

fixes #9730

@vercel vercel bot temporarily deployed to Preview – nomad January 6, 2021 19:11 Inactive
@vercel vercel bot temporarily deployed to Preview – nomad-storybook-and-ui January 6, 2021 19:11 Inactive
@nickethier nickethier requested a review from tgross January 6, 2021 20:57
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

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

LGTM

website/content/docs/job-specification/service.mdx Outdated Show resolved Hide resolved
website/content/docs/job-specification/service.mdx Outdated Show resolved Hide resolved
Co-authored-by: Tim Gross <tgross@hashicorp.com>
@vercel vercel bot temporarily deployed to Preview – nomad-storybook-and-ui January 7, 2021 13:54 Inactive
@nickethier nickethier merged commit a454580 into master Jan 7, 2021
@nickethier nickethier deleted the b-alloc-netmode-ports branch January 7, 2021 14:16
@github-actions
Copy link

github-actions bot commented Dec 4, 2022

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port selection in alloc network mode
2 participants