You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/agent/xdsv2/testdata/routes/destination/mixed-multi-destination-def...

66 lines
1.8 KiB

{
"versionInfo": "00000001",
"resources": [
{
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
"name": "default/default/api-1:http:1.1.1.1:1234",
"virtualHosts": [
{
"name": "default/default/api-1:http:1.1.1.1:1234",
"domains": [
"*"
],
"routes": [
{
"match": {
"prefix": "/split"
},
"route": {
"weightedClusters": {
"clusters": [
{
"name": "http.api-2.default.dc1.internal.foo.consul",
"weight": 60
},
{
"name": "http.api-1.default.dc1.internal.foo.consul",
"weight": 40
},
{
"name": "null_route_cluster",
"weight": 10
}
]
},
"timeout": "77s"
}
},
{
"match": {
"prefix": "/"
},
"route": {
"cluster": "http.api-1.default.dc1.internal.foo.consul",
"timeout": "606s",
"retryPolicy": {
"retryOn": "connect-failure",
"numRetries": 4
}
}
},
{
"match": {
"prefix": "/"
},
"route": {
"cluster": "null_route_cluster"
}
}
]
}
]
}
],
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
"nonce": "00000001"
}