2023-07-17 17:49:40 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"nonce": "00000001",
|
|
|
|
"resources": [
|
2023-07-17 17:49:40 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"name": "8080",
|
|
|
|
"validateClusters": true,
|
|
|
|
"virtualHosts": [
|
2023-07-17 17:49:40 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"domains": [
|
2023-07-17 17:49:40 +00:00
|
|
|
"*",
|
|
|
|
"*:8080"
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"name": "api-gateway-listener-9b9265b",
|
|
|
|
"routes": [
|
2023-07-17 17:49:40 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"match": {
|
|
|
|
"prefix": "/"
|
2023-07-17 17:49:40 +00:00
|
|
|
},
|
2023-09-11 16:40:19 +00:00
|
|
|
"requestHeadersToAdd": [
|
2023-07-17 17:49:40 +00:00
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"append": true,
|
|
|
|
"header": {
|
|
|
|
"key": "X-Header-Add",
|
|
|
|
"value": "added"
|
|
|
|
}
|
2023-07-17 17:49:40 +00:00
|
|
|
},
|
|
|
|
{
|
2023-09-11 16:40:19 +00:00
|
|
|
"append": false,
|
|
|
|
"header": {
|
|
|
|
"key": "X-Header-Set",
|
|
|
|
"value": "set"
|
|
|
|
}
|
2023-07-17 17:49:40 +00:00
|
|
|
}
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"requestHeadersToRemove": [
|
2023-07-17 17:49:40 +00:00
|
|
|
"X-Header-Remove"
|
2023-09-11 16:40:19 +00:00
|
|
|
],
|
|
|
|
"route": {
|
|
|
|
"cluster": "service.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
|
|
"idleTimeout": "30s",
|
|
|
|
"retryPolicy": {
|
|
|
|
"numRetries": 3,
|
|
|
|
"retriableStatusCodes": [
|
|
|
|
500
|
|
|
|
],
|
|
|
|
"retryOn": "cancelled,connect-failure,retriable-status-codes"
|
|
|
|
},
|
|
|
|
"timeout": "30s"
|
|
|
|
}
|
2023-07-17 17:49:40 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2023-09-11 16:40:19 +00:00
|
|
|
]
|
2023-07-17 17:49:40 +00:00
|
|
|
}
|
|
|
|
],
|
2023-09-11 16:40:19 +00:00
|
|
|
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"versionInfo": "00000001"
|
2023-07-17 17:49:40 +00:00
|
|
|
}
|