-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Nomad version
Output from nomad version
In use Nomad Version 1.9.5
Operating system and Environment details
Linux Ubuntu Server / Client and Windows Server 2022
Issue
NOMAD_IP_label interpolation is not working if in network block port definition a "-" is in use switch to "_" everything it is working as expected. I havent found in network block documentation nothing about limitation and the network block in general is working as expected.
Reproduction steps
create sample nomad job
network {
port "host-server-service"
static = "27001"
}
use single template file
{{ env "NOMAD_IP_host-server-service" }} - will be empty
################################################
network {
port "host_server_service"
static = "27001"
}
use single template file
{{ env "NOMAD_IP_host_server_service" }} - receive IP exepected IP
Expected Result
restrict network port defintion or allow "-" in NOMAD_IP_label definition to have a consistent approach.
Actual Result
Job file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
Metadata
Metadata
Assignees
Type
Projects
Status