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",
|
2021-10-12 02:18:56 +00:00
|
|
|
"partition": "default"
|
2020-01-24 15:04:58 +00:00
|
|
|
}
|
2019-12-13 16:44:48 +00:00
|
|
|
},
|
|
|
|
"static_resources": {
|
|
|
|
"clusters": [
|
|
|
|
{
|
|
|
|
"name": "local_agent",
|
2021-02-26 22:23:15 +00:00
|
|
|
"ignore_health_on_host_removal": false,
|
2019-12-13 16:44:48 +00:00
|
|
|
"connect_timeout": "1s",
|
|
|
|
"type": "STATIC",
|
2021-02-22 21:00:15 +00:00
|
|
|
"transport_socket": {
|
|
|
|
"name": "tls",
|
|
|
|
"typed_config": {
|
2021-02-26 22:23:15 +00:00
|
|
|
"@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext",
|
2021-02-22 21:00:15 +00:00
|
|
|
"common_tls_context": {
|
|
|
|
"validation_context": {
|
|
|
|
"trusted_ca": {
|
|
|
|
"inline_string": "-----BEGIN CERTIFICATE-----\nMIIEtzCCA5+gAwIBAgIJAIewRMI8OnvTMA0GCSqGSIb3DQEBBQUAMIGYMQswCQYD\nVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xHDAa\nBgNVBAoTE0hhc2hpQ29ycCBUZXN0IENlcnQxDDAKBgNVBAsTA0RldjEWMBQGA1UE\nAxMNdGVzdC5pbnRlcm5hbDEgMB4GCSqGSIb3DQEJARYRdGVzdEBpbnRlcm5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ngjapBlkNmu64WX0Ufub5dsJrdHS8672P30S7ILB7Mk0W8sL65IezRsZnG898yHf9\n2uzmz5OvNTM9K380g7xFlyobSVq+6yqmmSAlA/ptAcIIZT727P5jig/DB7fzJM3g\njctDlEGOmEe50GQXc25VKpcpjAsNQi5ER5gowQ0v3IXNZs+yU+LvxLHc0rUJ/XSp\nlFCAMOqd5uRoMOejnT51G6krvLNzPaQ3N9jQfNVY4Q0zfs0M+6dRWvqfqB9Vyq8/\nPOLMld+HyAZEBk9zK3ZVIXx6XS4dkDnSNR91njLq7eouf6M7+7s/oMQZZRtAfQ6r\nwlW975rYa1ZqEdA=\n-----END CERTIFICATE-----\n"
|
|
|
|
}
|
2019-12-13 16:44:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"http2_protocol_options": {},
|
2021-02-22 21:00:15 +00:00
|
|
|
"loadAssignment": {
|
|
|
|
"clusterName": "local_agent",
|
|
|
|
"endpoints": [
|
|
|
|
{
|
|
|
|
"lbEndpoints": [
|
|
|
|
{
|
|
|
|
"endpoint": {
|
|
|
|
"address": {
|
|
|
|
"socket_address": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port_value": 8502
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2019-12-13 16:44:48 +00:00
|
|
|
}
|
2021-02-22 21:00:15 +00:00
|
|
|
]
|
|
|
|
}
|
2019-12-13 16:44:48 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"stats_config": {
|
|
|
|
"stats_tags": [
|
2020-11-16 23:37:19 +00:00
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:([^.]+)~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2020-11-16 23:37:19 +00:00
|
|
|
"tag_name": "consul.destination.custom_hash"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:([^.]+)\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2020-11-16 23:37:19 +00:00
|
|
|
"tag_name": "consul.destination.service_subset"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?([^.]+)\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2020-11-16 23:37:19 +00:00
|
|
|
"tag_name": "consul.destination.service"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.([^.]+)\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2020-11-16 23:37:19 +00:00
|
|
|
"tag_name": "consul.destination.namespace"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:([^.]+)\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.destination.partition"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?([^.]+)\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2020-11-16 23:37:19 +00:00
|
|
|
"tag_name": "consul.destination.datacenter"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.([^.]+)\\.[^.]+\\.consul\\.)",
|
2020-11-16 23:37:19 +00:00
|
|
|
"tag_name": "consul.destination.routing_type"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.([^.]+)\\.consul\\.)",
|
2020-11-16 23:37:19 +00:00
|
|
|
"tag_name": "consul.destination.trust_domain"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.(?:passthrough~)?(((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+)\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2020-11-16 23:37:19 +00:00
|
|
|
"tag_name": "consul.destination.target"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.(?:passthrough~)?(((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+)\\.consul\\.)",
|
2020-11-16 23:37:19 +00:00
|
|
|
"tag_name": "consul.destination.full_target"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^(?:tcp|http)\\.upstream\\.(([^.]+)(?:\\.[^.]+)?\\.[^.]+\\.)",
|
|
|
|
"tag_name": "consul.upstream.service"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^(?:tcp|http)\\.upstream\\.([^.]+(?:\\.[^.]+)?\\.([^.]+)\\.)",
|
|
|
|
"tag_name": "consul.upstream.datacenter"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^(?:tcp|http)\\.upstream\\.([^.]+(?:\\.([^.]+))?\\.[^.]+\\.)",
|
|
|
|
"tag_name": "consul.upstream.namespace"
|
|
|
|
},
|
2019-12-13 16:44:48 +00:00
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.((?:([^.]+)~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2019-12-13 16:44:48 +00:00
|
|
|
"tag_name": "consul.custom_hash"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:([^.]+)\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2019-12-13 16:44:48 +00:00
|
|
|
"tag_name": "consul.service_subset"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?([^.]+)\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2019-12-13 16:44:48 +00:00
|
|
|
"tag_name": "consul.service"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.([^.]+)\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2019-12-13 16:44:48 +00:00
|
|
|
"tag_name": "consul.namespace"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?([^.]+)\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2019-12-13 16:44:48 +00:00
|
|
|
"tag_name": "consul.datacenter"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.([^.]+)\\.[^.]+\\.consul\\.)",
|
2019-12-13 16:44:48 +00:00
|
|
|
"tag_name": "consul.routing_type"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.([^.]+)\\.consul\\.)",
|
2019-12-13 16:44:48 +00:00
|
|
|
"tag_name": "consul.trust_domain"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.(((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+)\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2019-12-13 16:44:48 +00:00
|
|
|
"tag_name": "consul.target"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.(((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+)\\.consul\\.)",
|
2019-12-13 16:44:48 +00:00
|
|
|
"tag_name": "consul.full_target"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag_name": "local_cluster",
|
|
|
|
"fixed_value": "test-proxy"
|
2020-11-16 23:37:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag_name": "consul.source.service",
|
|
|
|
"fixed_value": "test-proxy"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag_name": "consul.source.namespace",
|
|
|
|
"fixed_value": "default"
|
|
|
|
},
|
2021-09-15 01:37:11 +00:00
|
|
|
{
|
|
|
|
"tag_name": "consul.source.partition",
|
|
|
|
"fixed_value": "default"
|
|
|
|
},
|
2020-11-16 23:37:19 +00:00
|
|
|
{
|
|
|
|
"tag_name": "consul.source.datacenter",
|
|
|
|
"fixed_value": "dc1"
|
2019-12-13 16:44:48 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"use_all_default_tags": true
|
|
|
|
},
|
|
|
|
"dynamic_resources": {
|
|
|
|
"lds_config": {
|
2021-02-26 22:23:15 +00:00
|
|
|
"ads": {},
|
|
|
|
"resource_api_version": "V3"
|
2019-12-13 16:44:48 +00:00
|
|
|
},
|
|
|
|
"cds_config": {
|
2021-02-26 22:23:15 +00:00
|
|
|
"ads": {},
|
|
|
|
"resource_api_version": "V3"
|
2019-12-13 16:44:48 +00:00
|
|
|
},
|
|
|
|
"ads_config": {
|
2021-04-29 18:54:05 +00:00
|
|
|
"api_type": "DELTA_GRPC",
|
2021-02-26 22:23:15 +00:00
|
|
|
"transport_api_version": "V3",
|
2019-12-13 16:44:48 +00:00
|
|
|
"grpc_services": {
|
|
|
|
"initial_metadata": [
|
|
|
|
{
|
|
|
|
"key": "x-consul-token",
|
|
|
|
"value": ""
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"envoy_grpc": {
|
|
|
|
"cluster_name": "local_agent"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-04-07 19:22:52 +00:00
|
|
|
|