2020-04-14 21:30:00 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"nonce": "00000001",
|
|
|
|
"resources": [
|
2020-04-14 21:30:00 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"name": "8080",
|
|
|
|
"validateClusters": true,
|
|
|
|
"virtualHosts": [
|
2020-04-14 21:30:00 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"domains": [
|
2020-07-07 15:43:04 +00:00
|
|
|
"db.ingress.*",
|
2022-03-07 17:47:14 +00:00
|
|
|
"db.ingress.*:8080"
|
2020-04-14 21:30:00 +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"
|
|
|
|
}
|
|
|
|
},
|
2020-04-14 21:30:00 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"match": {
|
|
|
|
"prefix": "/"
|
2020-04-14 21:30:00 +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
|
|
|
|
},
|
2020-04-14 21:30:00 +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
|
2020-04-14 21:30:00 +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
|
2020-04-14 21:30:00 +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
|
2020-04-14 21:30:00 +00:00
|
|
|
}
|
2023-12-22 19:49:44 +00:00
|
|
|
]
|
2020-04-14 21:30:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2023-09-11 16:40:19 +00:00
|
|
|
]
|
2020-04-14 21:30:00 +00:00
|
|
|
}
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"versionInfo": "00000001"
|
2020-04-14 21:30:00 +00:00
|
|
|
}
|