mirror of https://github.com/hashicorp/consul
191 lines
11 KiB
JSON
191 lines
11 KiB
JSON
{
|
|
"configs": [
|
|
{
|
|
"@type": "type.googleapis.com/envoy.admin.v3.ListenersConfigDump",
|
|
"dynamic_listeners": [
|
|
{
|
|
"name": "outbound_listener:127.0.0.1:15001",
|
|
"active_state": {
|
|
"version_info": "620f4e9a96cf706bce79f49d47dace3d52806d70b4775adda5f82c15e6aac31a",
|
|
"listener": {
|
|
"@type": "type.googleapis.com/envoy.config.listener.v3.Listener",
|
|
"name": "outbound_listener:127.0.0.1:15001",
|
|
"address": {
|
|
"socket_address": {
|
|
"address": "127.0.0.1",
|
|
"port_value": 15001
|
|
}
|
|
},
|
|
"filter_chains": [
|
|
{
|
|
"filter_chain_match": {
|
|
"prefix_ranges": [
|
|
{
|
|
"address_prefix": "10.244.0.63",
|
|
"prefix_len": 32
|
|
},
|
|
{
|
|
"address_prefix": "10.244.0.64",
|
|
"prefix_len": 32
|
|
}
|
|
]
|
|
},
|
|
"filters": [
|
|
{
|
|
"name": "envoy.filters.network.tcp_proxy",
|
|
"typed_config": {
|
|
"@type": "type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy",
|
|
"stat_prefix": "upstream.foo.default.default.dc1",
|
|
"cluster": "passthrough~foo.default.dc1.internal.dc1.consul"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"filter_chain_match": {
|
|
"prefix_ranges": [
|
|
{
|
|
"address_prefix": "10.96.5.96",
|
|
"prefix_len": 32
|
|
},
|
|
{
|
|
"address_prefix": "240.0.0.1",
|
|
"prefix_len": 32
|
|
}
|
|
]
|
|
},
|
|
"filters": [
|
|
{
|
|
"name": "envoy.filters.network.http_connection_manager",
|
|
"typed_config": {
|
|
"@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager",
|
|
"stat_prefix": "upstream.foo.default.default.dc1",
|
|
"route_config": {
|
|
"name": "foo",
|
|
"virtual_hosts": [
|
|
{
|
|
"name": "foo.default.default.dc1",
|
|
"domains": [
|
|
"*"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": {
|
|
"prefix": "/"
|
|
},
|
|
"route": {
|
|
"cluster": "foo.default.dc1.internal.dc1.consul"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"http_filters": [
|
|
{
|
|
"name": "envoy.filters.http.router",
|
|
"typed_config": {
|
|
"@type": "type.googleapis.com/envoy.extensions.filters.http.router.v3.Router"
|
|
}
|
|
}
|
|
],
|
|
"tracing": {
|
|
"random_sampling": {}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"filter_chain_match": {
|
|
"prefix_ranges": [
|
|
{
|
|
"address_prefix": "10.4.6.160",
|
|
"prefix_len": 32
|
|
},
|
|
{
|
|
"address_prefix": "240.0.0.3",
|
|
"prefix_len": 32
|
|
}
|
|
]
|
|
},
|
|
"filters": [
|
|
{
|
|
"name": "envoy.filters.network.http_connection_manager",
|
|
"typed_config": {
|
|
"@type": "type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager",
|
|
"stat_prefix": "upstream.backend.default.default.dc1",
|
|
"rds": {
|
|
"config_source": {
|
|
"ads": {},
|
|
"resource_api_version": "V3"
|
|
},
|
|
"route_config_name": "backend"
|
|
},
|
|
"http_filters": [
|
|
{
|
|
"name": "envoy.filters.http.router",
|
|
"typed_config": {
|
|
"@type": "type.googleapis.com/envoy.extensions.filters.http.router.v3.Router"
|
|
}
|
|
}
|
|
],
|
|
"tracing": {
|
|
"random_sampling": {}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"@type": "type.googleapis.com/envoy.admin.v3.RoutesConfigDump",
|
|
"dynamic_route_configs": [
|
|
{
|
|
"version_info": "8d6d5cdcfdbb614ca333b13b5f4aadb14aba24094b3142108b60e0292ccfe19c",
|
|
"route_config": {
|
|
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
"name": "backend",
|
|
"virtual_hosts": [
|
|
{
|
|
"name": "backend",
|
|
"domains": [
|
|
"*"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": {
|
|
"prefix": "/"
|
|
},
|
|
"route": {
|
|
"weighted_clusters": {
|
|
"clusters": [
|
|
{
|
|
"name": "backend.default.dc1.internal.domain.consul",
|
|
"weight": 5000
|
|
},
|
|
{
|
|
"name": "backend2.default.dc1.internal.domain.consul",
|
|
"weight": 5000
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"validate_clusters": true
|
|
},
|
|
"last_updated": "2023-02-09T17:38:12.738Z"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |