open-nomad/jobspec/test-fixtures/service-check-restart.hcl
2019-10-11 14:00:05 +02:00

24 lines
390 B
HCL

job "service_check_restart" {
type = "service"
group "group" {
task "task" {
service {
name = "http-service"
check_restart {
limit = 3
grace = "10s"
ignore_warnings = true
}
check {
name = "random-check"
type = "tcp"
port = "9001"
}
}
}
}
}