consul/agent/xds/testdata/routes/connect-proxy-lb-in-resolve...

72 lines
2.0 KiB
Plaintext
Raw Normal View History

2020-08-28 20:27:40 +00:00
{
"versionInfo": "00000001",
"resources": [
{
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
2020-08-28 20:27:40 +00:00
"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
},
2020-09-12 00:34:03 +00:00
{
"cookie": {
"name": "chocolate-chip",
"ttl": "0s"
}
},
2020-08-28 20:27:40 +00:00
{
"header": {
"headerName": "x-user-id"
}
},
{
"queryParameter": {
"name": "my-pretty-param"
}
},
2020-08-28 20:27:40 +00:00
{
"connectionProperties": {
"sourceIp": true
},
"terminal": true
}
]
}
}
]
}
],
"validateClusters": true
}
],
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
2020-08-28 20:27:40 +00:00
"nonce": "00000001"
}