2020-08-28 20:27:40 +00:00
|
|
|
{
|
2023-09-07 19:03:09 +00:00
|
|
|
"versionInfo": "00000001",
|
|
|
|
"resources": [
|
2020-08-28 20:27:40 +00:00
|
|
|
{
|
2023-09-07 19:03:09 +00:00
|
|
|
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"name": "8080",
|
|
|
|
"virtualHosts": [
|
2020-08-28 20:27:40 +00:00
|
|
|
{
|
2023-09-07 19:03:09 +00:00
|
|
|
"name": "db",
|
|
|
|
"domains": [
|
2020-08-28 20:27:40 +00:00
|
|
|
"db.ingress.*",
|
2022-03-07 17:47:14 +00:00
|
|
|
"db.ingress.*:8080"
|
2020-08-28 20:27:40 +00:00
|
|
|
],
|
2023-09-07 19:03:09 +00:00
|
|
|
"routes": [
|
2020-08-28 20:27:40 +00:00
|
|
|
{
|
2023-09-07 19:03:09 +00:00
|
|
|
"match": {
|
|
|
|
"prefix": "/"
|
2020-08-28 20:27:40 +00:00
|
|
|
},
|
2023-09-07 19:03:09 +00:00
|
|
|
"route": {
|
|
|
|
"weightedClusters": {
|
|
|
|
"clusters": [
|
2020-08-28 20:27:40 +00:00
|
|
|
{
|
2023-09-07 19:03:09 +00:00
|
|
|
"name": "something-else.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
|
|
"weight": 9550
|
2020-08-28 20:27:40 +00:00
|
|
|
},
|
|
|
|
{
|
2023-09-07 19:03:09 +00:00
|
|
|
"name": "db.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
|
|
"weight": 450
|
2020-08-28 20:27:40 +00:00
|
|
|
}
|
|
|
|
],
|
2023-09-07 19:03:09 +00:00
|
|
|
"totalWeight": 10000
|
2020-08-28 20:27:40 +00:00
|
|
|
},
|
2023-09-07 19:03:09 +00:00
|
|
|
"hashPolicy": [
|
2020-08-28 20:27:40 +00:00
|
|
|
{
|
2023-09-07 19:03:09 +00:00
|
|
|
"cookie": {
|
|
|
|
"name": "chocolate-chip"
|
2020-08-28 20:27:40 +00:00
|
|
|
},
|
2023-09-07 19:03:09 +00:00
|
|
|
"terminal": true
|
2020-08-28 20:27:40 +00:00
|
|
|
},
|
2020-09-12 00:34:03 +00:00
|
|
|
{
|
2023-09-07 19:03:09 +00:00
|
|
|
"cookie": {
|
|
|
|
"name": "chocolate-chip",
|
|
|
|
"ttl": "0s"
|
2020-09-12 00:34:03 +00:00
|
|
|
}
|
|
|
|
},
|
2020-08-28 20:27:40 +00:00
|
|
|
{
|
2023-09-07 19:03:09 +00:00
|
|
|
"header": {
|
|
|
|
"headerName": "x-user-id"
|
2020-08-28 20:27:40 +00:00
|
|
|
}
|
|
|
|
},
|
2023-08-03 19:03:02 +00:00
|
|
|
{
|
2023-09-07 19:03:09 +00:00
|
|
|
"queryParameter": {
|
|
|
|
"name": "my-pretty-param"
|
2023-08-03 19:03:02 +00:00
|
|
|
}
|
|
|
|
},
|
2020-08-28 20:27:40 +00:00
|
|
|
{
|
2023-09-07 19:03:09 +00:00
|
|
|
"connectionProperties": {
|
|
|
|
"sourceIp": true
|
2020-08-28 20:27:40 +00:00
|
|
|
},
|
2023-09-07 19:03:09 +00:00
|
|
|
"terminal": true
|
2020-08-28 20:27:40 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2023-09-07 19:03:09 +00:00
|
|
|
"validateClusters": true
|
2020-08-28 20:27:40 +00:00
|
|
|
}
|
|
|
|
],
|
2023-09-07 19:03:09 +00:00
|
|
|
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"nonce": "00000001"
|
2020-08-28 20:27:40 +00:00
|
|
|
}
|