Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14800 from hashicorp/mgw-tcp-keepalives
Add TCP keepalive settings to proxy config for mesh gateways
- Loading branch information
Showing
7 changed files
with
405 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:improvement | ||
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
143 changes: 143 additions & 0 deletions
143
agent/xds/testdata/clusters/mesh-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,143 @@ | ||
{ | ||
"versionInfo": "00000001", | ||
"resources": [ | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "bar.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "EDS", | ||
"edsClusterConfig": { | ||
"edsConfig": { | ||
"ads": { | ||
|
||
}, | ||
"resourceApiVersion": "V3" | ||
} | ||
}, | ||
"connectTimeout": "5s", | ||
"outlierDetection": { | ||
|
||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "dc2.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "EDS", | ||
"edsClusterConfig": { | ||
"edsConfig": { | ||
"ads": { | ||
|
||
}, | ||
"resourceApiVersion": "V3" | ||
} | ||
}, | ||
"connectTimeout": "5s", | ||
"outlierDetection": { | ||
|
||
}, | ||
"upstreamConnectionOptions": { | ||
"tcpKeepalive": { | ||
"keepaliveProbes": 7, | ||
"keepaliveTime": 120, | ||
"keepaliveInterval": 60 | ||
} | ||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "dc4.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "LOGICAL_DNS", | ||
"connectTimeout": "5s", | ||
"loadAssignment": { | ||
"clusterName": "dc4.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "123.us-west-2.elb.notaws.com", | ||
"portValue": 443 | ||
} | ||
} | ||
}, | ||
"healthStatus": "HEALTHY", | ||
"loadBalancingWeight": 1 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"dnsRefreshRate": "10s", | ||
"dnsLookupFamily": "V4_ONLY", | ||
"outlierDetection": { | ||
|
||
}, | ||
"upstreamConnectionOptions": { | ||
"tcpKeepalive": { | ||
"keepaliveProbes": 7, | ||
"keepaliveTime": 120, | ||
"keepaliveInterval": 60 | ||
} | ||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "dc6.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "LOGICAL_DNS", | ||
"connectTimeout": "5s", | ||
"loadAssignment": { | ||
"clusterName": "dc6.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "123.us-east-1.elb.notaws.com", | ||
"portValue": 443 | ||
} | ||
} | ||
}, | ||
"healthStatus": "UNHEALTHY", | ||
"loadBalancingWeight": 1 | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"dnsRefreshRate": "10s", | ||
"dnsLookupFamily": "V4_ONLY", | ||
"outlierDetection": { | ||
|
||
}, | ||
"upstreamConnectionOptions": { | ||
"tcpKeepalive": { | ||
"keepaliveProbes": 7, | ||
"keepaliveTime": 120, | ||
"keepaliveInterval": 60 | ||
} | ||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "foo.default.dc1.internal.11111111-2222-3333-4444-555555555555.consul", | ||
"type": "EDS", | ||
"edsClusterConfig": { | ||
"edsConfig": { | ||
"ads": { | ||
|
||
}, | ||
"resourceApiVersion": "V3" | ||
} | ||
}, | ||
"connectTimeout": "5s", | ||
"outlierDetection": { | ||
|
||
} | ||
} | ||
], | ||
"typeUrl": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"nonce": "00000001" | ||
} |
Oops, something went wrong.