github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/connect/input/expose-custom.nomad (about) 1 job "expose-custom" { 2 datacenters = ["dc1"] 3 4 constraint { 5 attribute = "${attr.kernel.name}" 6 value = "linux" 7 } 8 9 group "api" { 10 network { 11 mode = "bridge" 12 } 13 14 service { 15 name = "count-api" 16 port = "9001" 17 18 connect { 19 sidecar_service {} 20 sidecar_task { 21 resources { 22 cpu = 133 23 memory = 63 24 } 25 } 26 } 27 28 check { 29 expose = true 30 name = "api-health" 31 type = "http" 32 path = "/health" 33 interval = "10s" 34 timeout = "3s" 35 } 36 } 37 38 task "web" { 39 driver = "docker" 40 41 config { 42 image = "hashicorpdev/counter-api:v3" 43 } 44 } 45 } 46 }