github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/jobspec/test-fixtures/tg-service-connect-proxy.hcl (about) 1 job "service-connect-proxy" { 2 type = "service" 3 4 group "group" { 5 service { 6 name = "example" 7 8 connect { 9 sidecar_service { 10 proxy { 11 local_service_port = 8080 12 local_service_address = "10.0.1.2" 13 14 upstreams { 15 destination_name = "upstream1" 16 local_bind_port = 2001 17 } 18 19 upstreams { 20 destination_name = "upstream2" 21 local_bind_port = 2002 22 } 23 24 expose { 25 path { 26 path = "/metrics" 27 protocol = "http" 28 local_path_port = 9001 29 listener_port = "metrics" 30 } 31 32 path { 33 path = "/health" 34 protocol = "http" 35 local_path_port = 9002 36 listener_port = "health" 37 } 38 } 39 40 config { 41 foo = "bar" 42 } 43 } 44 } 45 } 46 } 47 } 48 }