2023-10-11 18:11:29 +00:00
|
|
|
{
|
|
|
|
"nonce": "00000001",
|
|
|
|
"resources": [
|
|
|
|
{
|
|
|
|
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"name": "8080",
|
|
|
|
"validateClusters": true,
|
|
|
|
"virtualHosts": [
|
|
|
|
{
|
|
|
|
"domains": [
|
2023-10-17 15:08:04 +00:00
|
|
|
"frontend.example.com",
|
|
|
|
"frontend.example.com:8080"
|
2023-10-11 18:11:29 +00:00
|
|
|
],
|
2023-10-17 15:08:04 +00:00
|
|
|
"name": "api-gateway-http-54620b06",
|
2023-10-11 18:11:29 +00:00
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"match": {
|
|
|
|
"prefix": "/"
|
|
|
|
},
|
|
|
|
"route": {
|
2023-10-17 15:08:04 +00:00
|
|
|
"cluster": "frontend.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
2023-10-11 18:11:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2023-10-17 15:08:04 +00:00
|
|
|
},
|
2023-10-11 18:11:29 +00:00
|
|
|
{
|
|
|
|
"domains": [
|
2023-10-17 15:08:04 +00:00
|
|
|
"backend.example.com",
|
|
|
|
"backend.example.com:8080"
|
2023-10-11 18:11:29 +00:00
|
|
|
],
|
2023-10-17 15:08:04 +00:00
|
|
|
"name": "api-gateway-http-5a84e719",
|
2023-10-11 18:11:29 +00:00
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"match": {
|
|
|
|
"prefix": "/"
|
|
|
|
},
|
|
|
|
"route": {
|
2023-10-17 15:08:04 +00:00
|
|
|
"cluster": "backend.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
2023-10-11 18:11:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
2023-10-17 15:08:04 +00:00
|
|
|
},
|
2023-10-11 18:11:29 +00:00
|
|
|
{
|
|
|
|
"domains": [
|
|
|
|
"*.example.com",
|
|
|
|
"*.example.com:8080"
|
|
|
|
],
|
|
|
|
"name": "api-gateway-http-aa289ce2",
|
|
|
|
"routes": [
|
|
|
|
{
|
|
|
|
"match": {
|
|
|
|
"prefix": "/frontend"
|
|
|
|
},
|
|
|
|
"route": {
|
|
|
|
"cluster": "frontend.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"match": {
|
|
|
|
"prefix": "/backend"
|
|
|
|
},
|
|
|
|
"route": {
|
|
|
|
"cluster": "backend.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
|
|
"versionInfo": "00000001"
|
|
|
|
}
|