open-nomad/jobspec/test-fixtures/tg-network-with-hostname.hcl

35 lines
508 B
HCL

job "foo" {
datacenters = ["dc1"]
group "bar" {
count = 3
shutdown_delay = "14s"
network {
mode = "bridge"
hostname = "foobar"
port "http" {
static = 80
to = 8080
host_network = "public"
}
}
task "bar" {
driver = "raw_exec"
config {
command = "bash"
args = ["-c", "echo hi"]
}
resources {
network {
mbits = 10
}
}
}
}
}