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

29 lines
551 B
HCL
Raw Normal View History

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