mirror of https://github.com/hashicorp/consul
23 lines
409 B
HCL
23 lines
409 B
HCL
|
services {
|
||
|
name = "s1"
|
||
|
port = 8080
|
||
|
connect {
|
||
|
sidecar_service {
|
||
|
proxy {
|
||
|
upstreams = [
|
||
|
{
|
||
|
destination_name = "s2"
|
||
|
local_bind_port = 5000
|
||
|
config {
|
||
|
protocol = "http"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
config {
|
||
|
protocol = "http"
|
||
|
envoy_prometheus_bind_addr = "0.0.0.0:1234"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|