2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"versionInfo": "00000001",
|
|
|
|
"resources": [
|
2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"name": "default/default/api-1:http:1.1.1.1:1234",
|
|
|
|
"virtualHosts": [
|
2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"name": "default/default/api-1:http:1.1.1.1:1234",
|
|
|
|
"domains": [
|
2023-10-25 17:43:58 +00:00
|
|
|
"*"
|
|
|
|
],
|
2024-01-29 20:08:31 +00:00
|
|
|
"routes": [
|
2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"match": {
|
|
|
|
"prefix": "/split"
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"route": {
|
|
|
|
"weightedClusters": {
|
|
|
|
"clusters": [
|
2023-10-24 16:23:27 +00:00
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"name": "http.api-2.default.dc1.internal.foo.consul",
|
|
|
|
"weight": 60
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"name": "http.api-1.default.dc1.internal.foo.consul",
|
|
|
|
"weight": 40
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"name": "null_route_cluster",
|
|
|
|
"weight": 10
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"timeout": "77s"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"match": {
|
|
|
|
"prefix": "/"
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"route": {
|
|
|
|
"cluster": "http.api-1.default.dc1.internal.foo.consul",
|
|
|
|
"timeout": "606s",
|
|
|
|
"retryPolicy": {
|
|
|
|
"retryOn": "connect-failure",
|
|
|
|
"numRetries": 4
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-01-29 20:08:31 +00:00
|
|
|
"match": {
|
|
|
|
"prefix": "/"
|
2023-10-24 16:23:27 +00:00
|
|
|
},
|
2024-01-29 20:08:31 +00:00
|
|
|
"route": {
|
|
|
|
"cluster": "null_route_cluster"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2024-01-29 20:08:31 +00:00
|
|
|
"validateClusters": true
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|
|
|
|
],
|
2024-01-29 20:08:31 +00:00
|
|
|
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"nonce": "00000001"
|
2023-10-24 16:23:27 +00:00
|
|
|
}
|