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

     1  job "check_pass_fail" {
     2    type = "service"
     3  
     4    group "group" {
     5      count = 1
     6  
     7      task "task" {
     8        service {
     9          name = "service"
    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            success_before_passing   = 3
    21            failures_before_critical = 4
    22          }
    23        }
    24      }
    25    }
    26  }