mirror of https://github.com/hashicorp/consul
Kyle Havlovitz
2 years ago
committed by
GitHub
6 changed files with 397 additions and 0 deletions
@ -0,0 +1,3 @@
|
||||
```release-note:bug |
||||
xds: Fix a bug where terminating gateway upstream clusters weren't configured properly when the service protocol was `http2`. |
||||
``` |
@ -0,0 +1,181 @@
|
||||
{ |
||||
"versionInfo": "00000001", |
||||
"resources": [ |
||||
{ |
||||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", |
||||
"name": "v1.web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", |
||||
"type": "LOGICAL_DNS", |
||||
"connectTimeout": "5s", |
||||
"loadAssignment": { |
||||
"clusterName": "v1.web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", |
||||
"endpoints": [ |
||||
{ |
||||
"lbEndpoints": [ |
||||
{ |
||||
"endpoint": { |
||||
"address": { |
||||
"socketAddress": { |
||||
"address": "web.external.service", |
||||
"portValue": 9090 |
||||
} |
||||
} |
||||
}, |
||||
"healthStatus": "HEALTHY", |
||||
"loadBalancingWeight": 1 |
||||
} |
||||
] |
||||
} |
||||
] |
||||
}, |
||||
"typedExtensionProtocolOptions": { |
||||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": { |
||||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions", |
||||
"explicitHttpConfig": { |
||||
"http2ProtocolOptions": { |
||||
|
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"dnsRefreshRate": "10s", |
||||
"dnsLookupFamily": "V4_ONLY", |
||||
"outlierDetection": { |
||||
|
||||
}, |
||||
"transportSocket": { |
||||
"name": "tls", |
||||
"typedConfig": { |
||||
"@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext", |
||||
"commonTlsContext": { |
||||
"tlsParams": { |
||||
|
||||
}, |
||||
"validationContext": { |
||||
"trustedCa": { |
||||
"filename": "ca.cert.pem" |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
{ |
||||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", |
||||
"name": "v2.web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", |
||||
"type": "LOGICAL_DNS", |
||||
"connectTimeout": "5s", |
||||
"loadAssignment": { |
||||
"clusterName": "v2.web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", |
||||
"endpoints": [ |
||||
{ |
||||
"lbEndpoints": [ |
||||
{ |
||||
"endpoint": { |
||||
"address": { |
||||
"socketAddress": { |
||||
"address": "web.external2.service", |
||||
"portValue": 9091 |
||||
} |
||||
} |
||||
}, |
||||
"healthStatus": "HEALTHY", |
||||
"loadBalancingWeight": 1 |
||||
} |
||||
] |
||||
} |
||||
] |
||||
}, |
||||
"typedExtensionProtocolOptions": { |
||||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": { |
||||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions", |
||||
"explicitHttpConfig": { |
||||
"http2ProtocolOptions": { |
||||
|
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"dnsRefreshRate": "10s", |
||||
"dnsLookupFamily": "V4_ONLY", |
||||
"outlierDetection": { |
||||
|
||||
}, |
||||
"transportSocket": { |
||||
"name": "tls", |
||||
"typedConfig": { |
||||
"@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext", |
||||
"commonTlsContext": { |
||||
"tlsParams": { |
||||
|
||||
}, |
||||
"validationContext": { |
||||
"trustedCa": { |
||||
"filename": "ca.cert.pem" |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
}, |
||||
{ |
||||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", |
||||
"name": "web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", |
||||
"type": "LOGICAL_DNS", |
||||
"connectTimeout": "5s", |
||||
"loadAssignment": { |
||||
"clusterName": "web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", |
||||
"endpoints": [ |
||||
{ |
||||
"lbEndpoints": [ |
||||
{ |
||||
"endpoint": { |
||||
"address": { |
||||
"socketAddress": { |
||||
"address": "web.external.service", |
||||
"portValue": 9090 |
||||
} |
||||
} |
||||
}, |
||||
"healthStatus": "HEALTHY", |
||||
"loadBalancingWeight": 1 |
||||
} |
||||
] |
||||
} |
||||
] |
||||
}, |
||||
"typedExtensionProtocolOptions": { |
||||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": { |
||||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions", |
||||
"explicitHttpConfig": { |
||||
"http2ProtocolOptions": { |
||||
|
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"dnsRefreshRate": "10s", |
||||
"dnsLookupFamily": "V4_ONLY", |
||||
"outlierDetection": { |
||||
|
||||
}, |
||||
"transportSocket": { |
||||
"name": "tls", |
||||
"typedConfig": { |
||||
"@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext", |
||||
"commonTlsContext": { |
||||
"tlsParams": { |
||||
|
||||
}, |
||||
"validationContext": { |
||||
"trustedCa": { |
||||
"filename": "ca.cert.pem" |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
], |
||||
"typeUrl": "type.googleapis.com/envoy.config.cluster.v3.Cluster", |
||||
"nonce": "00000001" |
||||
} |
@ -0,0 +1,65 @@
|
||||
{ |
||||
"versionInfo": "00000001", |
||||
"resources": [ |
||||
{ |
||||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", |
||||
"name": "web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", |
||||
"type": "LOGICAL_DNS", |
||||
"connectTimeout": "5s", |
||||
"loadAssignment": { |
||||
"clusterName": "web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", |
||||
"endpoints": [ |
||||
{ |
||||
"lbEndpoints": [ |
||||
{ |
||||
"endpoint": { |
||||
"address": { |
||||
"socketAddress": { |
||||
"address": "web.external.service", |
||||
"portValue": 9090 |
||||
} |
||||
} |
||||
}, |
||||
"healthStatus": "HEALTHY", |
||||
"loadBalancingWeight": 1 |
||||
} |
||||
] |
||||
} |
||||
] |
||||
}, |
||||
"typedExtensionProtocolOptions": { |
||||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": { |
||||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions", |
||||
"explicitHttpConfig": { |
||||
"http2ProtocolOptions": { |
||||
|
||||
} |
||||
} |
||||
} |
||||
}, |
||||
"dnsRefreshRate": "10s", |
||||
"dnsLookupFamily": "V4_ONLY", |
||||
"outlierDetection": { |
||||
|
||||
}, |
||||
"transportSocket": { |
||||
"name": "tls", |
||||
"typedConfig": { |
||||
"@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext", |
||||
"commonTlsContext": { |
||||
"tlsParams": { |
||||
|
||||
}, |
||||
"validationContext": { |
||||
"trustedCa": { |
||||
"filename": "ca.cert.pem" |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
} |
||||
], |
||||
"typeUrl": "type.googleapis.com/envoy.config.cluster.v3.Cluster", |
||||
"nonce": "00000001" |
||||
} |
Loading…
Reference in new issue