2019-04-29 16:27:57 +00:00
|
|
|
{
|
|
|
|
"admin": {
|
|
|
|
"access_log_path": "/dev/null",
|
|
|
|
"address": {
|
|
|
|
"socket_address": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port_value": 19000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"node": {
|
|
|
|
"cluster": "test-proxy",
|
|
|
|
"id": "test-proxy"
|
|
|
|
},
|
|
|
|
"static_resources": {
|
|
|
|
"clusters": [
|
|
|
|
{
|
|
|
|
"name": "local_agent",
|
|
|
|
"connect_timeout": "1s",
|
|
|
|
"type": "STATIC",
|
|
|
|
"http2_protocol_options": {},
|
2019-07-05 15:06:47 +00:00
|
|
|
"hosts": [{
|
2019-04-29 16:27:57 +00:00
|
|
|
"socket_address": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port_value": 8502
|
|
|
|
}
|
2019-07-05 15:06:47 +00:00
|
|
|
}]
|
2019-04-29 16:27:57 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "zipkin",
|
|
|
|
"type": "STRICT_DNS",
|
|
|
|
"connect_timeout": "5s",
|
|
|
|
"load_assignment": {
|
|
|
|
"cluster_name": "zipkin",
|
|
|
|
"endpoints": [
|
|
|
|
{
|
|
|
|
"lb_endpoints": [
|
|
|
|
{
|
|
|
|
"endpoint": {
|
|
|
|
"address": {
|
|
|
|
"socket_address": {
|
|
|
|
"address": "zipkin.service.consul",
|
|
|
|
"port_value": 9411
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"stats_config": {
|
|
|
|
"stats_tags": [
|
|
|
|
{
|
|
|
|
"tag_name": "local_cluster",
|
|
|
|
"fixed_value": "test-proxy"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"use_all_default_tags": true
|
|
|
|
},
|
|
|
|
"tracing": {
|
|
|
|
"http": {
|
|
|
|
"name": "envoy.zipkin",
|
|
|
|
"config": {
|
|
|
|
"collector_cluster": "zipkin",
|
|
|
|
"collector_endpoint": "/api/v1/spans"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"dynamic_resources": {
|
|
|
|
"lds_config": { "ads": {} },
|
|
|
|
"cds_config": { "ads": {} },
|
|
|
|
"ads_config": {
|
|
|
|
"api_type": "GRPC",
|
|
|
|
"grpc_services": {
|
|
|
|
"initial_metadata": [
|
|
|
|
{
|
|
|
|
"key": "x-consul-token",
|
|
|
|
"value": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"envoy_grpc": {
|
|
|
|
"cluster_name": "local_agent"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|