2020-04-07 22:16:34 +00:00
|
|
|
{
|
|
|
|
"admin": {
|
|
|
|
"access_log_path": "/dev/null",
|
|
|
|
"address": {
|
|
|
|
"socket_address": {
|
|
|
|
"address": "127.0.0.1",
|
|
|
|
"port_value": 19000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"node": {
|
2022-06-06 16:23:08 +00:00
|
|
|
"cluster": "test",
|
2020-04-07 22:16:34 +00:00
|
|
|
"id": "test-proxy",
|
|
|
|
"metadata": {
|
|
|
|
"namespace": "default",
|
2021-10-12 02:18:56 +00:00
|
|
|
"partition": "default"
|
2020-04-07 22:16:34 +00:00
|
|
|
}
|
|
|
|
},
|
2022-06-29 15:29:54 +00:00
|
|
|
"layered_runtime": {
|
|
|
|
"layers": [
|
|
|
|
{
|
|
|
|
"name": "base",
|
|
|
|
"static_layer": {
|
|
|
|
"re2.max_program_size.error_level": 1048576
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-04-07 22:16:34 +00:00
|
|
|
"static_resources": {
|
|
|
|
"clusters": [
|
|
|
|
{
|
|
|
|
"name": "local_agent",
|
2021-02-26 22:23:15 +00:00
|
|
|
"ignore_health_on_host_removal": false,
|
2020-04-07 22:16:34 +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": {
|
2023-11-07 19:57:52 +00:00
|
|
|
"inline_string": "-----BEGIN CERTIFICATE-----\nMIIEEzCCAvugAwIBAgIUIYIXKNRBFBPuuOit2D2CfVJAoDAwDQYJKoZIhvcNAQEL\nBQAwgZgxCzAJBg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pYVjcw1AK4/2I1Q7P4RgpSarAxG5tYIMB1xcfFKqBn\nf/dDXexONgwpW6SoBJ58c7OB/aH8CenDT8Vwk3fwjYslOywbFRqBjH+PB8uTlu0e\nD1fzjpcQCrQeA5VD4pjJAaTmi7bLVuH5XIya3++f/N3xOn53GVMUDO1OdFz8ZMvJ\nWrrg7E/wMXB1b5Wo2n2ypVU4sejikSjg2nfdLojUWGMrZ8TuUnjFs88PeQ9CObAp\nA36dLfs4JLF3sVOtqTd6BGwegDsmmllYO5Ky6I+laoLSHpGDEihS\n-----END CERTIFICATE-----\n"
|
2021-02-22 21:00:15 +00:00
|
|
|
}
|
2020-04-07 22:16:34 +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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2020-04-07 22:16:34 +00:00
|
|
|
}
|
2021-02-22 21:00:15 +00:00
|
|
|
]
|
|
|
|
}
|
2020-04-07 22:16:34 +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"
|
|
|
|
},
|
|
|
|
{
|
2022-07-25 17:49:00 +00:00
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:([^.]+)\\.)?[^.]+\\.internal[^.]*\\.[^.]+\\.consul\\.)",
|
2021-12-10 18:26:22 +00:00
|
|
|
"tag_name": "consul.destination.partition"
|
|
|
|
},
|
|
|
|
{
|
2022-07-25 17:49:00 +00:00
|
|
|
"regex": "^cluster\\.(?:passthrough~)?((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?([^.]+)\\.internal[^.]*\\.[^.]+\\.consul\\.)",
|
2020-11-16 23:37:19 +00:00
|
|
|
"tag_name": "consul.destination.datacenter"
|
|
|
|
},
|
2022-07-25 17:49:00 +00:00
|
|
|
{
|
|
|
|
"regex": "^cluster\\.([^.]+\\.(?:[^.]+\\.)?([^.]+)\\.external\\.[^.]+\\.consul\\.)",
|
|
|
|
"tag_name": "consul.destination.peer"
|
|
|
|
},
|
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.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"
|
|
|
|
},
|
|
|
|
{
|
2022-07-25 17:49:00 +00:00
|
|
|
"regex": "^(?:tcp|http)\\.upstream(?:_peered)?\\.(([^.]+)(?:\\.[^.]+)?(?:\\.[^.]+)?\\.[^.]+\\.)",
|
2020-11-16 23:37:19 +00:00
|
|
|
"tag_name": "consul.upstream.service"
|
|
|
|
},
|
|
|
|
{
|
2021-12-14 15:57:09 +00:00
|
|
|
"regex": "^(?:tcp|http)\\.upstream\\.([^.]+(?:\\.[^.]+)?(?:\\.[^.]+)?\\.([^.]+)\\.)",
|
2020-11-16 23:37:19 +00:00
|
|
|
"tag_name": "consul.upstream.datacenter"
|
|
|
|
},
|
|
|
|
{
|
2022-07-25 17:49:00 +00:00
|
|
|
"regex": "^(?:tcp|http)\\.upstream_peered\\.([^.]+(?:\\.[^.]+)?\\.([^.]+)\\.)",
|
|
|
|
"tag_name": "consul.upstream.peer"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"regex": "^(?:tcp|http)\\.upstream(?:_peered)?\\.([^.]+(?:\\.([^.]+))?(?:\\.[^.]+)?\\.[^.]+\\.)",
|
2020-11-16 23:37:19 +00:00
|
|
|
"tag_name": "consul.upstream.namespace"
|
|
|
|
},
|
2021-12-14 15:57:09 +00:00
|
|
|
{
|
|
|
|
"regex": "^(?:tcp|http)\\.upstream\\.([^.]+(?:\\.[^.]+)?(?:\\.([^.]+))?\\.[^.]+\\.)",
|
|
|
|
"tag_name": "consul.upstream.partition"
|
|
|
|
},
|
2020-04-07 22:16:34 +00:00
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.((?:([^.]+)~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2020-04-07 22:16:34 +00:00
|
|
|
"tag_name": "consul.custom_hash"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:([^.]+)\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2020-04-07 22:16:34 +00:00
|
|
|
"tag_name": "consul.service_subset"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?([^.]+)\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2020-04-07 22:16:34 +00:00
|
|
|
"tag_name": "consul.service"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.([^.]+)\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2020-04-07 22:16:34 +00:00
|
|
|
"tag_name": "consul.namespace"
|
|
|
|
},
|
|
|
|
{
|
2022-07-25 17:49:00 +00:00
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?([^.]+)\\.internal[^.]*\\.[^.]+\\.consul\\.)",
|
2020-04-07 22:16:34 +00:00
|
|
|
"tag_name": "consul.datacenter"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.([^.]+)\\.[^.]+\\.consul\\.)",
|
2020-04-07 22:16:34 +00:00
|
|
|
"tag_name": "consul.routing_type"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.([^.]+)\\.consul\\.)",
|
2020-04-07 22:16:34 +00:00
|
|
|
"tag_name": "consul.trust_domain"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.(((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+)\\.[^.]+\\.[^.]+\\.consul\\.)",
|
2020-04-07 22:16:34 +00:00
|
|
|
"tag_name": "consul.target"
|
|
|
|
},
|
|
|
|
{
|
2021-12-10 18:26:22 +00:00
|
|
|
"regex": "^cluster\\.(((?:[^.]+~)?(?:[^.]+\\.)?[^.]+\\.[^.]+\\.(?:[^.]+\\.)?[^.]+\\.[^.]+\\.[^.]+)\\.consul\\.)",
|
2020-04-07 22:16:34 +00:00
|
|
|
"tag_name": "consul.full_target"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag_name": "local_cluster",
|
2022-06-06 16:23:08 +00:00
|
|
|
"fixed_value": "test"
|
2020-11-16 23:37:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"tag_name": "consul.source.service",
|
2022-06-06 16:23:08 +00:00
|
|
|
"fixed_value": "test"
|
2020-11-16 23:37:19 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"
|
2020-04-07 22:16:34 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"use_all_default_tags": true
|
|
|
|
},
|
|
|
|
"dynamic_resources": {
|
|
|
|
"lds_config": {
|
2021-02-26 22:23:15 +00:00
|
|
|
"ads": {},
|
2023-07-10 21:08:06 +00:00
|
|
|
"initial_fetch_timeout": "0s",
|
2021-02-26 22:23:15 +00:00
|
|
|
"resource_api_version": "V3"
|
2020-04-07 22:16:34 +00:00
|
|
|
},
|
|
|
|
"cds_config": {
|
2021-02-26 22:23:15 +00:00
|
|
|
"ads": {},
|
2023-07-10 21:08:06 +00:00
|
|
|
"initial_fetch_timeout": "0s",
|
2021-02-26 22:23:15 +00:00
|
|
|
"resource_api_version": "V3"
|
2020-04-07 22:16:34 +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",
|
2020-04-07 22:16:34 +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
|
|
|
|