mirror of https://github.com/hashicorp/consul
73 lines
2.0 KiB
Plaintext
73 lines
2.0 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": {
|
|
"hashPolicy": [
|
|
{
|
|
"cookie": {
|
|
"name": "chocolate-chip"
|
|
},
|
|
"terminal": true
|
|
},
|
|
{
|
|
"cookie": {
|
|
"name": "chocolate-chip",
|
|
"ttl": "0s"
|
|
}
|
|
},
|
|
{
|
|
"header": {
|
|
"headerName": "x-user-id"
|
|
}
|
|
},
|
|
{
|
|
"queryParameter": {
|
|
"name": "my-pretty-param"
|
|
}
|
|
},
|
|
{
|
|
"connectionProperties": {
|
|
"sourceIp": true
|
|
},
|
|
"terminal": true
|
|
}
|
|
],
|
|
"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
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
"versionInfo": "00000001"
|
|
} |