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

     1  job "group_service_check_script" {
     2    group "group" {
     3      count = 1
     4  
     5      network {
     6        mode = "bridge"
     7  
     8        port "http" {
     9          static = 80
    10          to     = 8080
    11        }
    12      }
    13  
    14      service {
    15        name = "foo-service"
    16        port = "http"
    17  
    18        check {
    19          name           = "check-name"
    20          type           = "script"
    21          command        = "/bin/true"
    22          interval       = "10s"
    23          timeout        = "2s"
    24          initial_status = "passing"
    25          task           = "foo"
    26        }
    27      }
    28  
    29      task "foo" {}
    30    }
    31  }