nomad icon indicating copy to clipboard operation
nomad copied to clipboard

specify listening on only tcp or udp port in `network` block

Open huwany opened this issue 3 years ago • 3 comments

Proposal

att, currently the nomad will listen a port on both tcp and udp protocol, so is there a way we can listen the port on tcp or udp only?

huwany avatar Jul 09 '22 12:07 huwany

Hi @huwany! There's not currently a way to specify this, but it seems like a reasonable feature request. Something that may be interesting for us to look into is whether all task drivers can support it. Marking this issue for discussion and roadmapping.

tgross avatar Jul 09 '22 17:07 tgross

@tgross ok, got it.

huwany avatar Jul 10 '22 01:07 huwany

The usage example:

4a7d2572e4c3        planitar/dd-agent:7.50.3         "/bin/entrypoint.sh"   2 seconds ago         Up 2 seconds         172.17.42.1:8125->8125/udp, 8126/tcp   dd-agent

EugenKon avatar Apr 01 '24 19:04 EugenKon