github.com/quite/nomad@v0.8.6/jobspec/test-fixtures/service-check-initial-status.hcl (about)

     1  job "check_initial_status" {
     2      type = "service"
     3      group "group" {
     4          count = 1
     5  
     6          task "task" {
     7            service {
     8              tags = ["foo", "bar"]
     9              port = "http"
    10  
    11              check {
    12                name     = "check-name"
    13                type     = "http"
    14                path     = "/"
    15                method   = "POST"
    16                interval = "10s"
    17                timeout  = "2s"
    18                initial_status = "passing"
    19  
    20                header {
    21                  Authorization = ["Basic ZWxhc3RpYzpjaGFuZ2VtZQ=="]
    22                }
    23              }
    24            }
    25          }
    26      }
    27  }
    28