github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/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 task "simpleweb" { 12 driver = "docker" 13 14 config { 15 image = "nginx:latest" 16 17 port_map { 18 http = 8080 19 } 20 } 21 22 resources { 23 cpu = 256 24 memory = 128 25 26 network { 27 mbits = 1 28 port "http"{} 29 } 30 } 31 32 // TODO(tgross): this isn't passing health checks 33 service { 34 port = "http" 35 name = "simpleweb" 36 tags = ["simpleweb"] 37 38 check { 39 type = "tcp" 40 port = "http" 41 interval = "10s" 42 timeout = "2s" 43 } 44 } 45 } 46 } 47 }