mirror of https://github.com/status-im/consul.git
101 lines
3.3 KiB
Plaintext
101 lines
3.3 KiB
Plaintext
{
|
|
"nonce": "00000001",
|
|
"resources": [
|
|
{
|
|
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
"name": "8080",
|
|
"validateClusters": true,
|
|
"virtualHosts": [
|
|
{
|
|
"domains": [
|
|
"db.ingress.*",
|
|
"db.ingress.*:8080"
|
|
],
|
|
"name": "db",
|
|
"routes": [
|
|
{
|
|
"match": {
|
|
"prefix": "/"
|
|
},
|
|
"route": {
|
|
"weightedClusters": {
|
|
"clusters": [
|
|
{
|
|
"name": "big-side.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
"requestHeadersToAdd": [
|
|
{
|
|
"append": false,
|
|
"header": {
|
|
"key": "x-split-leg",
|
|
"value": "big"
|
|
}
|
|
}
|
|
],
|
|
"responseHeadersToAdd": [
|
|
{
|
|
"append": false,
|
|
"header": {
|
|
"key": "x-split-leg",
|
|
"value": "big"
|
|
}
|
|
}
|
|
],
|
|
"weight": 9550
|
|
},
|
|
{
|
|
"name": "goldilocks-side.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
"requestHeadersToAdd": [
|
|
{
|
|
"append": false,
|
|
"header": {
|
|
"key": "x-split-leg",
|
|
"value": "goldilocks"
|
|
}
|
|
}
|
|
],
|
|
"responseHeadersToAdd": [
|
|
{
|
|
"append": false,
|
|
"header": {
|
|
"key": "x-split-leg",
|
|
"value": "goldilocks"
|
|
}
|
|
}
|
|
],
|
|
"weight": 400
|
|
},
|
|
{
|
|
"name": "lil-bit-side.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
"requestHeadersToAdd": [
|
|
{
|
|
"append": false,
|
|
"header": {
|
|
"key": "x-split-leg",
|
|
"value": "small"
|
|
}
|
|
}
|
|
],
|
|
"responseHeadersToAdd": [
|
|
{
|
|
"append": false,
|
|
"header": {
|
|
"key": "x-split-leg",
|
|
"value": "small"
|
|
}
|
|
}
|
|
],
|
|
"weight": 50
|
|
}
|
|
],
|
|
"totalWeight": 10000
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
"versionInfo": "00000001"
|
|
} |