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