consul/agent/xds/testdata/routes/api-gateway-with-http-route...

59 lines
1.6 KiB
Plaintext

{
"nonce": "00000001",
"resources": [
{
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
"name": "8080",
"validateClusters": true,
"virtualHosts": [
{
"domains": [
"*",
"*:8080"
],
"name": "api-gateway-listener-9b9265b",
"routes": [
{
"match": {
"prefix": "/"
},
"requestHeadersToAdd": [
{
"append": true,
"header": {
"key": "X-Header-Add",
"value": "added"
}
},
{
"append": false,
"header": {
"key": "X-Header-Set",
"value": "set"
}
}
],
"requestHeadersToRemove": [
"X-Header-Remove"
],
"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"
}
}
]
}
]
}
],
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
"versionInfo": "00000001"
}