2016-08-16 21:34:36 +00:00
|
|
|
job "check_initial_status" {
|
|
|
|
type = "service"
|
2016-08-16 19:05:15 +00:00
|
|
|
group "group" {
|
|
|
|
count = 1
|
|
|
|
|
|
|
|
task "task" {
|
|
|
|
service {
|
|
|
|
tags = ["foo", "bar"]
|
2016-08-16 21:34:36 +00:00
|
|
|
port = "http"
|
2016-08-16 19:05:15 +00:00
|
|
|
|
|
|
|
check {
|
|
|
|
name = "check-name"
|
|
|
|
type = "http"
|
2017-08-16 00:17:11 +00:00
|
|
|
path = "/"
|
|
|
|
method = "POST"
|
2016-08-16 19:05:15 +00:00
|
|
|
interval = "10s"
|
|
|
|
timeout = "2s"
|
|
|
|
initial_status = "passing"
|
2017-08-16 00:17:11 +00:00
|
|
|
|
|
|
|
header {
|
|
|
|
Authorization = ["Basic ZWxhc3RpYzpjaGFuZ2VtZQ=="]
|
|
|
|
}
|
2016-08-16 19:05:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|