github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/jobspec/test-fixtures/service-check-initial-status.hcl (about)

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