mirror of https://github.com/hashicorp/consul
61 lines
1.6 KiB
Plaintext
61 lines
1.6 KiB
Plaintext
|
{
|
||
|
"versionInfo": "00000001",
|
||
|
"resources": [
|
||
|
{
|
||
|
"@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration",
|
||
|
"name": "db",
|
||
|
"virtualHosts": [
|
||
|
{
|
||
|
"name": "db",
|
||
|
"domains": [
|
||
|
"*"
|
||
|
],
|
||
|
"routes": [
|
||
|
{
|
||
|
"match": {
|
||
|
"prefix": "/"
|
||
|
},
|
||
|
"route": {
|
||
|
"weightedClusters": {
|
||
|
"clusters": [
|
||
|
{
|
||
|
"name": "something-else.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
||
|
"weight": 9550
|
||
|
},
|
||
|
{
|
||
|
"name": "db.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
||
|
"weight": 450
|
||
|
}
|
||
|
],
|
||
|
"totalWeight": 10000
|
||
|
},
|
||
|
"hashPolicy": [
|
||
|
{
|
||
|
"cookie": {
|
||
|
"name": "chocolate-chip"
|
||
|
},
|
||
|
"terminal": true
|
||
|
},
|
||
|
{
|
||
|
"header": {
|
||
|
"headerName": "x-user-id"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"connectionProperties": {
|
||
|
"sourceIp": true
|
||
|
},
|
||
|
"terminal": true
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"validateClusters": true
|
||
|
}
|
||
|
],
|
||
|
"typeUrl": "type.googleapis.com/envoy.api.v2.RouteConfiguration",
|
||
|
"nonce": "00000001"
|
||
|
}
|