open-nomad/jobspec/test-fixtures/service-check-restart.hcl

22 lines
446 B
HCL
Raw Normal View History

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"
}
}
}
}
}