hashicorp / hashicorp/nomad

Interpolate service name in Nomad UI

Open
#9,741 3 comments 7 reactions 1 assignee Claimed by @philrenaud View on GitHub
stage/accepted theme/jobspec type/enhancement
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

### Nomad version
`Nomad v1.0.1`

### Operating system and Environment details
Ubuntu 18.04

### Issue
In the Nomad UI, a service's name is not interpolated if it is set to something like `${NOMAD_JOB_NAME}`.

### Job file (if appropriate)

```hcl
job "evandam-redis" {
datacenters = ["dev-usw2-dev1"]

type = "service"

group "cache" {
count = 1

network {
port "tcp" {}
}

service {
name = "${NOMAD_JOB_NAME}"
port = "tcp"

check {
name = "ping"
type = "tcp"
interval = "2s"
timeout = "2s"
}
}

task "evandam-redis" {
driver = "docker"

config {
image = "redis:5"
ports = ["tcp"]

args = [
"--port",
"${NOMAD_PORT_tcp}",
]
}

resources {
# cpu = 500 # 500 MHz
memory = 20 # 20 MB
}
}
}
}
```

![Screen Shot 2021-01-06 at 12 05 05 PM](https://user-images.githubusercontent.com/3985383/103814953-760d8700-5017-11eb-85a5-fbfbc31d45c9.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.