2020-08-08 01:22:06 +00:00
|
|
|
job "check_pass_fail" {
|
|
|
|
type = "service"
|
|
|
|
|
|
|
|
group "group" {
|
|
|
|
count = 1
|
|
|
|
|
|
|
|
task "task" {
|
|
|
|
service {
|
|
|
|
name = "service"
|
|
|
|
port = "http"
|
|
|
|
|
|
|
|
check {
|
2020-08-10 14:38:45 +00:00
|
|
|
name = "check-name"
|
|
|
|
type = "http"
|
|
|
|
path = "/"
|
|
|
|
method = "POST"
|
|
|
|
interval = "10s"
|
|
|
|
timeout = "2s"
|
|
|
|
initial_status = "passing"
|
|
|
|
success_before_passing = 3
|
2020-08-08 01:22:06 +00:00
|
|
|
failures_before_critical = 4
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|