2019-12-13 16:44:48 +00:00
|
|
|
{
|
|
|
|
"admin": {
|
|
|
|
"access_log_path": "/dev/null",
|
|
|
|
"address": {
|
|
|
|
"socket_address": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port_value": 19000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"node": {
|
|
|
|
"cluster": "test-proxy",
|
2020-01-24 15:04:58 +00:00
|
|
|
"id": "test-proxy",
|
|
|
|
"metadata": {
|
2020-02-10 19:53:04 +00:00
|
|
|
"namespace": "default",
|
2020-07-31 20:52:49 +00:00
|
|
|
"envoy_version": "1.15.0"
|
2020-01-24 15:04:58 +00:00
|
|
|
}
|
2019-12-13 16:44:48 +00:00
|
|
|
},
|
|
|
|
"static_resources": {
|
|
|
|
"clusters": [
|
|
|
|
{
|
|
|
|
"name": "local_agent",
|
|
|
|
"connect_timeout": "1s",
|
|
|
|
"type": "STATIC",
|
|
|
|
"tls_context": {
|
|
|
|
"common_tls_context": {
|
|
|
|
"validation_context": {
|
|
|
|
"trusted_ca": {
|
2020-01-10 14:57:54 +00:00
|
|
|
"inline_string": "-----BEGIN CERTIFICATE-----\nMIIEtzCCA5+gAwIBAgIJAIewRMI8OnvTMA0GCSqGSIb3DQEBBQUAMIGYMQswCQYD\nVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xHDAa\nBgNVBAoTE0hhc2hpQ29ycCBUZXN0IENlcnQxDDAKBgNVBAsTA0RldjEWMBQGA1UE\nAxMNdGVzdC5pbnRlcm5hbDEgMB4GCSqGSIb3DQEJARYRdGVzdEBpbnRlcm5hbC5j\nb20wHhcNMTQwNDA3MTkwMTA4WhcNMjQwNDA0MTkwMTA4WjCBmDELMAkGA1UEBhMC\nVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRwwGgYDVQQK\nExNIYXNoaUNvcnAgVGVzdCBDZXJ0MQwwCgYDVQQLE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p\nlFCAMOqd5uRoMOejnT51G6krvLNzPaQ3N9jQfNVY4Q0zfs0M+6dRWvqfqB9Vyq8/\nPOLMld+HyAZEBk9zK3ZVIXx6XS4dkDnSNR91njLq7eouf6M7+7s/oMQZZRtAfQ6r\nwlW975rYa1ZqEdA=\n-----END CERTIFICATE-----\n"
|
2019-12-13 16:44:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"http2_protocol_options": {},
|
|
|
|
"hosts": [
|
|
|
|
{
|
|
|
|
"socket_address": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port_value": 8502
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"stats_config": {
|
|
|
|
"stats_tags": [
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:([^.]+)~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.custom_hash"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:([^.]+)\\.)?[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.service_subset"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?([^.]+)\\.[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.service"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.([^.]+)\\.[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.namespace"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.([^.]+)\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.datacenter"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.([^.]+)\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.routing_type"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.([^.]+)\\.consul\\.)",
|
|
|
|
"tag_name": "consul.trust_domain"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.(((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+)\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.target"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.(((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.[^.]+\\.[^.]+)\\.consul\\.)",
|
|
|
|
"tag_name": "consul.full_target"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag_name": "local_cluster",
|
|
|
|
"fixed_value": "test-proxy"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"use_all_default_tags": true
|
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-02-10 19:53:04 +00:00
|
|
|
},
|
|
|
|
"layered_runtime": {
|
|
|
|
"layers": [
|
|
|
|
{
|
|
|
|
"name": "static_layer",
|
|
|
|
"static_layer": {
|
|
|
|
"envoy.deprecated_features:envoy.api.v2.Cluster.tls_context": true,
|
|
|
|
"envoy.deprecated_features:envoy.config.trace.v2.ZipkinConfig.HTTP_JSON_V1": true,
|
|
|
|
"envoy.deprecated_features:envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager.Tracing.operation_name": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2019-12-13 16:44:48 +00:00
|
|
|
}
|
|
|
|
}
|