mirror of https://github.com/hashicorp/consul
136 lines
3.9 KiB
Plaintext
136 lines
3.9 KiB
Plaintext
|
{
|
||
|
"versionInfo": "00000001",
|
||
|
"resources": [
|
||
|
{
|
||
|
"@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration",
|
||
|
"name": "v1.web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
||
|
"virtualHosts": [
|
||
|
{
|
||
|
"name": "v1.web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
||
|
"domains": [
|
||
|
"*"
|
||
|
],
|
||
|
"routes": [
|
||
|
{
|
||
|
"match": {
|
||
|
"prefix": "/"
|
||
|
},
|
||
|
"route": {
|
||
|
"cluster": "v1.web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
||
|
"autoHostRewrite": true,
|
||
|
"hashPolicy": [
|
||
|
{
|
||
|
"cookie": {
|
||
|
"name": "chocolate-chip"
|
||
|
},
|
||
|
"terminal": true
|
||
|
},
|
||
|
{
|
||
|
"header": {
|
||
|
"headerName": "x-user-id"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"connectionProperties": {
|
||
|
"sourceIp": true
|
||
|
},
|
||
|
"terminal": true
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"validateClusters": true
|
||
|
},
|
||
|
{
|
||
|
"@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration",
|
||
|
"name": "v2.web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
||
|
"virtualHosts": [
|
||
|
{
|
||
|
"name": "v2.web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
||
|
"domains": [
|
||
|
"*"
|
||
|
],
|
||
|
"routes": [
|
||
|
{
|
||
|
"match": {
|
||
|
"prefix": "/"
|
||
|
},
|
||
|
"route": {
|
||
|
"cluster": "v2.web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
||
|
"autoHostRewrite": true,
|
||
|
"hashPolicy": [
|
||
|
{
|
||
|
"cookie": {
|
||
|
"name": "chocolate-chip"
|
||
|
},
|
||
|
"terminal": true
|
||
|
},
|
||
|
{
|
||
|
"header": {
|
||
|
"headerName": "x-user-id"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"connectionProperties": {
|
||
|
"sourceIp": true
|
||
|
},
|
||
|
"terminal": true
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"validateClusters": true
|
||
|
},
|
||
|
{
|
||
|
"@type": "type.googleapis.com/envoy.api.v2.RouteConfiguration",
|
||
|
"name": "web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
||
|
"virtualHosts": [
|
||
|
{
|
||
|
"name": "web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
||
|
"domains": [
|
||
|
"*"
|
||
|
],
|
||
|
"routes": [
|
||
|
{
|
||
|
"match": {
|
||
|
"prefix": "/"
|
||
|
},
|
||
|
"route": {
|
||
|
"cluster": "web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul",
|
||
|
"autoHostRewrite": true,
|
||
|
"hashPolicy": [
|
||
|
{
|
||
|
"cookie": {
|
||
|
"name": "chocolate-chip"
|
||
|
},
|
||
|
"terminal": true
|
||
|
},
|
||
|
{
|
||
|
"header": {
|
||
|
"headerName": "x-user-id"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"connectionProperties": {
|
||
|
"sourceIp": true
|
||
|
},
|
||
|
"terminal": true
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"validateClusters": true
|
||
|
}
|
||
|
],
|
||
|
"typeUrl": "type.googleapis.com/envoy.api.v2.RouteConfiguration",
|
||
|
"nonce": "00000001"
|
||
|
}
|