2023-03-28 22:48:58 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2019-04-29 16:27:57 +00:00
|
|
|
services {
|
|
|
|
name = "s1"
|
|
|
|
port = 8080
|
|
|
|
connect {
|
|
|
|
sidecar_service {
|
|
|
|
proxy {
|
|
|
|
upstreams = [
|
|
|
|
{
|
|
|
|
destination_name = "s2"
|
|
|
|
local_bind_port = 5000
|
|
|
|
config {
|
|
|
|
protocol = "http"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
config {
|
|
|
|
protocol = "http"
|
|
|
|
envoy_dogstatsd_url = "udp://127.0.0.1:8125"
|
|
|
|
envoy_stats_tags = ["foo=bar"]
|
|
|
|
envoy_stats_flush_interval = "1s"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|