2019-07-12 19:16:21 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"nonce": "00000001",
|
|
|
|
"resources": [
|
2019-07-12 19:16:21 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"name": "db",
|
|
|
|
"validateClusters": true,
|
|
|
|
"virtualHosts": [
|
2019-07-12 19:16:21 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"domains": [
|
2019-07-12 19:16:21 +00:00
|
|
|
"*"
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"name": "db",
|
|
|
|
"routes": [
|
2023-12-19 23:36:07 +00:00
|
|
|
{
|
|
|
|
"match": {
|
|
|
|
"prefix": "/big-side"
|
|
|
|
},
|
|
|
|
"route": {
|
|
|
|
"cluster": "big-side.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
|
|
"idleTimeout": "0s",
|
|
|
|
"timeout": "10s"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"match": {
|
|
|
|
"prefix": "/lil-bit-side"
|
|
|
|
},
|
|
|
|
"route": {
|
|
|
|
"cluster": "lil-bit-side.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
|
|
|
}
|
|
|
|
},
|
2019-07-12 19:16:21 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"match": {
|
|
|
|
"prefix": "/"
|
2019-07-12 19:16:21 +00:00
|
|
|
},
|
2023-09-11 16:40:19 +00:00
|
|
|
"route": {
|
|
|
|
"weightedClusters": {
|
|
|
|
"clusters": [
|
2023-12-19 23:36:07 +00:00
|
|
|
{
|
|
|
|
"name": "db.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
|
|
"requestHeadersToAdd": [
|
|
|
|
{
|
2024-01-04 00:36:25 +00:00
|
|
|
"appendAction": "OVERWRITE_IF_EXISTS_OR_ADD",
|
2023-12-19 23:36:07 +00:00
|
|
|
"header": {
|
|
|
|
"key": "x-split-leg",
|
|
|
|
"value": "db"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"responseHeadersToAdd": [
|
|
|
|
{
|
2024-01-04 00:36:25 +00:00
|
|
|
"appendAction": "OVERWRITE_IF_EXISTS_OR_ADD",
|
2023-12-19 23:36:07 +00:00
|
|
|
"header": {
|
|
|
|
"key": "x-split-leg",
|
|
|
|
"value": "db"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"weight": 100
|
|
|
|
},
|
2019-07-12 19:16:21 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"name": "big-side.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
|
|
"requestHeadersToAdd": [
|
2021-07-13 18:49:14 +00:00
|
|
|
{
|
2024-01-04 00:36:25 +00:00
|
|
|
"appendAction": "OVERWRITE_IF_EXISTS_OR_ADD",
|
2023-09-11 16:40:19 +00:00
|
|
|
"header": {
|
|
|
|
"key": "x-split-leg",
|
|
|
|
"value": "big"
|
|
|
|
}
|
2021-07-13 18:49:14 +00:00
|
|
|
}
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"responseHeadersToAdd": [
|
2021-07-13 18:49:14 +00:00
|
|
|
{
|
2024-01-04 00:36:25 +00:00
|
|
|
"appendAction": "OVERWRITE_IF_EXISTS_OR_ADD",
|
2023-09-11 16:40:19 +00:00
|
|
|
"header": {
|
|
|
|
"key": "x-split-leg",
|
|
|
|
"value": "big"
|
|
|
|
}
|
2021-07-13 18:49:14 +00:00
|
|
|
}
|
2023-09-11 16:40:19 +00:00
|
|
|
],
|
|
|
|
"weight": 9550
|
2019-07-12 19:16:21 +00:00
|
|
|
},
|
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"name": "goldilocks-side.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
|
|
"requestHeadersToAdd": [
|
2021-07-13 18:49:14 +00:00
|
|
|
{
|
2024-01-04 00:36:25 +00:00
|
|
|
"appendAction": "OVERWRITE_IF_EXISTS_OR_ADD",
|
2023-09-11 16:40:19 +00:00
|
|
|
"header": {
|
|
|
|
"key": "x-split-leg",
|
|
|
|
"value": "goldilocks"
|
|
|
|
}
|
2021-07-13 18:49:14 +00:00
|
|
|
}
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"responseHeadersToAdd": [
|
2021-07-13 18:49:14 +00:00
|
|
|
{
|
2024-01-04 00:36:25 +00:00
|
|
|
"appendAction": "OVERWRITE_IF_EXISTS_OR_ADD",
|
2023-09-11 16:40:19 +00:00
|
|
|
"header": {
|
|
|
|
"key": "x-split-leg",
|
|
|
|
"value": "goldilocks"
|
|
|
|
}
|
2021-07-13 18:49:14 +00:00
|
|
|
}
|
2023-09-11 16:40:19 +00:00
|
|
|
],
|
2023-12-19 23:36:07 +00:00
|
|
|
"weight": 300
|
2019-07-12 19:16:21 +00:00
|
|
|
},
|
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"name": "lil-bit-side.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
|
|
"requestHeadersToAdd": [
|
2021-07-13 18:49:14 +00:00
|
|
|
{
|
2024-01-04 00:36:25 +00:00
|
|
|
"appendAction": "OVERWRITE_IF_EXISTS_OR_ADD",
|
2023-09-11 16:40:19 +00:00
|
|
|
"header": {
|
|
|
|
"key": "x-split-leg",
|
|
|
|
"value": "small"
|
|
|
|
}
|
2021-07-13 18:49:14 +00:00
|
|
|
}
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"responseHeadersToAdd": [
|
2021-07-13 18:49:14 +00:00
|
|
|
{
|
2024-01-04 00:36:25 +00:00
|
|
|
"appendAction": "OVERWRITE_IF_EXISTS_OR_ADD",
|
2023-09-11 16:40:19 +00:00
|
|
|
"header": {
|
|
|
|
"key": "x-split-leg",
|
|
|
|
"value": "small"
|
|
|
|
}
|
2021-07-13 18:49:14 +00:00
|
|
|
}
|
2023-09-11 16:40:19 +00:00
|
|
|
],
|
|
|
|
"weight": 50
|
2019-07-12 19:16:21 +00:00
|
|
|
}
|
2023-12-22 19:49:44 +00:00
|
|
|
]
|
2019-07-12 19:16:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2023-09-11 16:40:19 +00:00
|
|
|
]
|
2019-07-12 19:16:21 +00:00
|
|
|
}
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"versionInfo": "00000001"
|
2019-07-12 19:16:21 +00:00
|
|
|
}
|