-
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
New group-level network stanza ports not detected by the service stanza #8780
Comments
Hey @sarneeh I've got a fix pending for this in #8743 For now the workaround is to use the deprecated syntax. Sorry for the inconvenience, we'll get this merged soon. Thanks. |
@nickethier Thank you! 🙇 |
@sarneeh If you don't mind, what's your reason for wanting to keep the |
Any progress here? |
Current support aside, is putting |
Just to be clear, is the plan to allow a service defined in a task to be able to access port labels defined at the group level? Or is the recommendation to move service definitions that require port labels to the group level? If the former, would that be just a temporary fix until the old syntax is fully deprecated, or will that supported moving forward. I'm just trying to determine how best to advise our users to update their specs - rearranging all the service definitions in 1000s of hcls will be a bit of an undertaking :) |
@gmichalec-pandora 1000s jobs? I feel your pain! I've asked about the docs and deprecation to be improved here: #9292 so I guess it's related to this issue as well. |
Hey folks, sorry this issue has waned I plan to pick it up this week. I would recommend using group service blocks where you can (which should be in most cases). Most new service features (connect) only work with group service blocks. |
As a general help, would it be possible to mention (in docs) which specific features/syntax need connect enabled? i.e. will the new group level syntax work without the Connect enabled? |
Connect is an entirely separate feature that is enabled by 1) group I'll try to find a good place to call it out. |
It might be clearer if service definitions were only valid at the group level, but allowing them at either seems confusing. I can certainly understand the arguments for putting service definitions at the allocation (group) level, but, given the choice, it does make more sense to me to associate a service with a task - it's not the group that is listening on those ports, but the application running in the task. |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Nomad v0.12.3
Operating system and Environment details
Mac OSX Catalina
Issue
I tried to use the new group-level network stanza for allocating ports (instead of
task -> resources -> network
level), but unfortunately those ports can't be used in the task-levelservice
stanza.Also, shouldn't the docker-attached port being forwarded to the container's EXPOSE port? Because when I remove the
port { to }
directive, then nomad will forward the host port to the same port on the container (even if it EXPOSES the80
port).Reproduction steps
Run the below job file - it will fail with an error:
Job file (if appropriate)
The text was updated successfully, but these errors were encountered: