mirror of https://github.com/hashicorp/consul
93 lines
2.3 KiB
Plaintext
93 lines
2.3 KiB
Plaintext
{
|
|
"versionInfo": "00000001",
|
|
"resources": [
|
|
{
|
|
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
"name": "443",
|
|
"virtualHosts": [
|
|
{
|
|
"name": "baz",
|
|
"domains": [
|
|
"baz.ingress.*",
|
|
"baz.ingress.*:443"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": {
|
|
"prefix": "/"
|
|
},
|
|
"route": {
|
|
"cluster": "baz.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "qux",
|
|
"domains": [
|
|
"qux.ingress.*",
|
|
"qux.ingress.*:443"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": {
|
|
"prefix": "/"
|
|
},
|
|
"route": {
|
|
"cluster": "qux.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"validateClusters": true
|
|
},
|
|
{
|
|
"@type": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
"name": "8080",
|
|
"virtualHosts": [
|
|
{
|
|
"name": "foo",
|
|
"domains": [
|
|
"test1.example.com",
|
|
"test2.example.com",
|
|
"test2.example.com:8080",
|
|
"test1.example.com:8080"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": {
|
|
"prefix": "/"
|
|
},
|
|
"route": {
|
|
"cluster": "foo.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
"timeout": "22s"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "bar",
|
|
"domains": [
|
|
"bar.ingress.*",
|
|
"bar.ingress.*:8080"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": {
|
|
"prefix": "/"
|
|
},
|
|
"route": {
|
|
"cluster": "bar.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
|
"timeout": "22s"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"validateClusters": true
|
|
}
|
|
],
|
|
"typeUrl": "type.googleapis.com/envoy.config.route.v3.RouteConfiguration",
|
|
"nonce": "00000001"
|
|
} |