github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/jobspec/test-fixtures/tg-service-check.hcl (about) 1 job "group_service_check_script" { 2 group "group" { 3 count = 1 4 5 network { 6 mode = "bridge" 7 8 port "http" { 9 static = 80 10 to = 8080 11 } 12 } 13 14 service { 15 name = "foo-service" 16 port = "http" 17 on_update = "ignore" 18 19 check { 20 name = "check-name" 21 type = "script" 22 command = "/bin/true" 23 interval = "10s" 24 timeout = "2s" 25 initial_status = "passing" 26 task = "foo" 27 on_update = "ignore" 28 body = "post body" 29 } 30 } 31 32 task "foo" {} 33 } 34 }