open-nomad/jobspec/test-fixtures/service-check-initial-status.hcl

29 lines
597 B
HCL
Raw Normal View History

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"
path = "/"
method = "POST"
2016-08-16 19:05:15 +00:00
interval = "10s"
timeout = "2s"
initial_status = "passing"
header {
Authorization = ["Basic ZWxhc3RpYzpjaGFuZ2VtZQ=="]
}
2016-08-16 19:05:15 +00:00
}
}
}
}
}