Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
227 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
```release-note:improvement | ||
connect: Added gateway options to Envoy proxy config for enabling tcp keepalives on upstream connections to mesh gateways in remote datacenters. | ||
connect: Added gateway options to Envoy proxy config for enabling tcp keepalives on terminating gateway upstreams and mesh gateways in remote datacenters. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
190 changes: 190 additions & 0 deletions
190
agent/xds/testdata/clusters/terminating-gateway-tcp-keepalives.latest.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
{ | ||
"versionInfo": "00000001", | ||
"resources": [ | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "api.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "LOGICAL_DNS", | ||
"connectTimeout": "5s", | ||
"loadAssignment": { | ||
"clusterName": "api.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "api.altdomain", | ||
"portValue": 8081 | ||
} | ||
} | ||
}, | ||
"healthStatus": "HEALTHY", | ||
"loadBalancingWeight": 1 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"dnsRefreshRate": "10s", | ||
"dnsLookupFamily": "V4_ONLY", | ||
"outlierDetection": { | ||
|
||
}, | ||
"transportSocket": { | ||
"name": "tls", | ||
"typedConfig": { | ||
"@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext", | ||
"commonTlsContext": { | ||
"tlsParams": { | ||
|
||
}, | ||
"tlsCertificates": [ | ||
{ | ||
"certificateChain": { | ||
"filename": "api.cert.pem" | ||
}, | ||
"privateKey": { | ||
"filename": "api.key.pem" | ||
} | ||
} | ||
], | ||
"validationContext": { | ||
"trustedCa": { | ||
"filename": "ca.cert.pem" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"upstreamConnectionOptions": { | ||
"tcpKeepalive": { | ||
"keepaliveProbes": 5, | ||
"keepaliveTime": 133, | ||
"keepaliveInterval": 27 | ||
} | ||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "cache.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "LOGICAL_DNS", | ||
"connectTimeout": "5s", | ||
"loadAssignment": { | ||
"clusterName": "cache.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "cache.mydomain", | ||
"portValue": 8081 | ||
} | ||
} | ||
}, | ||
"healthStatus": "HEALTHY", | ||
"loadBalancingWeight": 1 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"dnsRefreshRate": "10s", | ||
"dnsLookupFamily": "V4_ONLY", | ||
"outlierDetection": { | ||
|
||
}, | ||
"upstreamConnectionOptions": { | ||
"tcpKeepalive": { | ||
"keepaliveProbes": 5, | ||
"keepaliveTime": 133, | ||
"keepaliveInterval": 27 | ||
} | ||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "db.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "LOGICAL_DNS", | ||
"connectTimeout": "5s", | ||
"loadAssignment": { | ||
"clusterName": "db.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "db.mydomain", | ||
"portValue": 8081 | ||
} | ||
} | ||
}, | ||
"healthStatus": "UNHEALTHY", | ||
"loadBalancingWeight": 1 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"dnsRefreshRate": "10s", | ||
"dnsLookupFamily": "V4_ONLY", | ||
"outlierDetection": { | ||
|
||
}, | ||
"upstreamConnectionOptions": { | ||
"tcpKeepalive": { | ||
"keepaliveProbes": 5, | ||
"keepaliveTime": 133, | ||
"keepaliveInterval": 27 | ||
} | ||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "web.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "EDS", | ||
"edsClusterConfig": { | ||
"edsConfig": { | ||
"ads": { | ||
|
||
}, | ||
"resourceApiVersion": "V3" | ||
} | ||
}, | ||
"connectTimeout": "5s", | ||
"outlierDetection": { | ||
|
||
}, | ||
"transportSocket": { | ||
"name": "tls", | ||
"typedConfig": { | ||
"@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext", | ||
"commonTlsContext": { | ||
"tlsParams": { | ||
|
||
}, | ||
"validationContext": { | ||
"trustedCa": { | ||
"filename": "ca.cert.pem" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"upstreamConnectionOptions": { | ||
"tcpKeepalive": { | ||
"keepaliveProbes": 5, | ||
"keepaliveTime": 133, | ||
"keepaliveInterval": 27 | ||
} | ||
} | ||
} | ||
], | ||
"typeUrl": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"nonce": "00000001" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters