github.com/remilapeyre/nomad@v0.8.5/jobspec/test-fixtures/service-check-bad-header-2.hcl (about)

     1  job "check_bad_header" {
     2      type = "service"
     3      group "group" {
     4          count = 1
     5  
     6          task "task" {
     7            service {
     8              tags = ["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 = ["ok", 840]
    22                }
    23              }
    24            }
    25          }
    26      }
    27  }
    28