open-nomad/jobspec/test-fixtures/service-check-pass-fail.hcl

27 lines
594 B
HCL

job "check_pass_fail" {
type = "service"
group "group" {
count = 1
task "task" {
service {
name = "service"
port = "http"
check {
name = "check-name"
type = "http"
path = "/"
method = "POST"
interval = "10s"
timeout = "2s"
initial_status = "passing"
success_before_passing = 3
failures_before_critical = 4
}
}
}
}
}