github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/jobspec/test-fixtures/tg-service-proxy-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              expose {
    10                path {
    11                  path            = "/health"
    12                  protocol        = "http"
    13                  local_path_port = 2222
    14                  listener_port   = "healthcheck"
    15                }
    16  
    17                path {
    18                  path            = "/metrics"
    19                  protocol        = "grpc"
    20                  local_path_port = 3000
    21                  listener_port   = "metrics"
    22                }
    23              }
    24            }
    25          }
    26        }
    27      }
    28    }
    29  }