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 = "s2"
|
|
|
|
port = 8181
|
|
|
|
connect {
|
|
|
|
sidecar_service {
|
|
|
|
proxy {
|
|
|
|
config {
|
2021-02-22 21:00:15 +00:00
|
|
|
protocol = "http"
|
|
|
|
envoy_tracing_json = <<EOF
|
2019-04-29 16:27:57 +00:00
|
|
|
{
|
|
|
|
"http": {
|
2021-02-22 21:00:15 +00:00
|
|
|
"name": "envoy.tracers.zipkin",
|
|
|
|
"typedConfig": {
|
2021-02-26 22:23:15 +00:00
|
|
|
"@type": "type.googleapis.com/envoy.config.trace.v3.ZipkinConfig",
|
2019-04-29 16:27:57 +00:00
|
|
|
"collector_cluster": "zipkin",
|
2021-02-22 21:00:15 +00:00
|
|
|
"collector_endpoint_version": "HTTP_JSON",
|
2019-04-29 16:27:57 +00:00
|
|
|
"collector_endpoint": "/api/v1/spans",
|
|
|
|
"shared_span_context": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
envoy_extra_static_clusters_json = <<EOF2
|
|
|
|
{
|
|
|
|
"name": "zipkin",
|
|
|
|
"type": "STRICT_DNS",
|
|
|
|
"connect_timeout": "5s",
|
|
|
|
"load_assignment": {
|
|
|
|
"cluster_name": "zipkin",
|
|
|
|
"endpoints": [
|
|
|
|
{
|
|
|
|
"lb_endpoints": [
|
|
|
|
{
|
|
|
|
"endpoint": {
|
|
|
|
"address": {
|
|
|
|
"socket_address": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port_value": 9411
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-02-22 21:00:15 +00:00
|
|
|
}
|