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

     1  job "group_service_proxy_expose" {
     2    group "group" {
     3      service {
     4        name = "example"
     5  
     6        connect {
     7          sidecar_service {
     8            proxy {}
     9          }
    10        }
    11  
    12        check {
    13          name   = "example-check1"
    14          expose = true
    15        }
    16  
    17        check {
    18          name   = "example-check2"
    19          expose = false
    20        }
    21      }
    22    }
    23  }