2022-06-28 19:52:25 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"nonce": "00000001",
|
|
|
|
"resources": [
|
2022-06-28 19:52:25 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"name": "db",
|
|
|
|
"validateClusters": true,
|
|
|
|
"virtualHosts": [
|
2022-06-28 19:52:25 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"domains": [
|
2022-06-28 19:52:25 +00:00
|
|
|
"*"
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"name": "db",
|
|
|
|
"routes": [
|
2022-06-28 19:52:25 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"match": {
|
|
|
|
"prefix": "/split"
|
2022-06-28 19:52:25 +00:00
|
|
|
},
|
2023-09-11 16:40:19 +00:00
|
|
|
"route": {
|
|
|
|
"weightedClusters": {
|
|
|
|
"clusters": [
|
2022-06-28 19:52:25 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"name": "exported~alt.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
|
|
"weight": 6000
|
2022-06-28 19:52:25 +00:00
|
|
|
},
|
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"name": "exported~db.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
|
|
"weight": 4000
|
2022-06-28 19:52:25 +00:00
|
|
|
}
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"totalWeight": 10000
|
2022-06-28 19:52:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"match": {
|
|
|
|
"prefix": "/api"
|
2022-06-28 19:52:25 +00:00
|
|
|
},
|
2023-09-11 16:40:19 +00:00
|
|
|
"route": {
|
|
|
|
"cluster": "exported~v2.api.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
2022-06-28 19:52:25 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"match": {
|
|
|
|
"prefix": "/"
|
2022-06-28 19:52:25 +00:00
|
|
|
},
|
2023-09-11 16:40:19 +00:00
|
|
|
"route": {
|
|
|
|
"cluster": "exported~db.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
2022-06-28 19:52:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2023-09-11 16:40:19 +00:00
|
|
|
]
|
2022-06-28 19:52:25 +00:00
|
|
|
}
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"versionInfo": "00000001"
|
2022-06-28 19:52:25 +00:00
|
|
|
}
|