mirror of https://github.com/hashicorp/consul
85 lines
1.9 KiB
Plaintext
85 lines
1.9 KiB
Plaintext
|
{
|
||
|
"versionInfo": "00000001",
|
||
|
"resources": [
|
||
|
{
|
||
|
"@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration",
|
||
|
"name": "http_443",
|
||
|
"virtualHosts": [
|
||
|
{
|
||
|
"name": "baz",
|
||
|
"domains": [
|
||
|
"baz.*"
|
||
|
],
|
||
|
"routes": [
|
||
|
{
|
||
|
"match": {
|
||
|
"prefix": "/"
|
||
|
},
|
||
|
"route": {
|
||
|
"cluster": "baz.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "qux",
|
||
|
"domains": [
|
||
|
"qux.*"
|
||
|
],
|
||
|
"routes": [
|
||
|
{
|
||
|
"match": {
|
||
|
"prefix": "/"
|
||
|
},
|
||
|
"route": {
|
||
|
"cluster": "qux.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"validateClusters": true
|
||
|
},
|
||
|
{
|
||
|
"@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration",
|
||
|
"name": "http_8080",
|
||
|
"virtualHosts": [
|
||
|
{
|
||
|
"name": "foo",
|
||
|
"domains": [
|
||
|
"foo.*"
|
||
|
],
|
||
|
"routes": [
|
||
|
{
|
||
|
"match": {
|
||
|
"prefix": "/"
|
||
|
},
|
||
|
"route": {
|
||
|
"cluster": "foo.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"name": "bar",
|
||
|
"domains": [
|
||
|
"bar.*"
|
||
|
],
|
||
|
"routes": [
|
||
|
{
|
||
|
"match": {
|
||
|
"prefix": "/"
|
||
|
},
|
||
|
"route": {
|
||
|
"cluster": "bar.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"validateClusters": true
|
||
|
}
|
||
|
],
|
||
|
"typeUrl": "type.googleapis.com/envoy.api.v2.RouteConfiguration",
|
||
|
"nonce": "00000001"
|
||
|
}
|