github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/e2e/metrics/input/simpleweb.nomad (about) 1 job "simpleweb" { 2 datacenters = ["dc1"] 3 type = "system" 4 5 constraint { 6 attribute = "${attr.kernel.name}" 7 value = "linux" 8 } 9 10 group "simpleweb" { 11 network { 12 port "http" { 13 to = 8080 14 } 15 } 16 task "simpleweb" { 17 driver = "docker" 18 19 config { 20 image = "nginx:latest" 21 22 ports = ["http"] 23 } 24 25 resources { 26 cpu = 256 27 memory = 128 28 } 29 30 // TODO(tgross): this isn't passing health checks 31 service { 32 port = "http" 33 name = "simpleweb" 34 tags = ["simpleweb"] 35 36 check { 37 type = "tcp" 38 port = "http" 39 interval = "10s" 40 timeout = "2s" 41 } 42 } 43 } 44 } 45 }