-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update xds generation for peering over mesh gws
This commit adds the xDS resources needed for INBOUND traffic from peer clusters: - 1 filter chain for all inbound peering requests. - 1 cluster for all inbound peering requests. - 1 endpoint per voting server with the gRPC TLS port configured. There is one filter chain and cluster because unlike with WAN federation, peer clusters will not attempt to dial individual servers. Peer clusters will only dial the local mesh gateway addresses.
- Loading branch information
Showing
9 changed files
with
340 additions
and
2 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
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
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
24 changes: 24 additions & 0 deletions
24
agent/xds/testdata/clusters/mesh-gateway-peering-control-plane.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,24 @@ | ||
{ | ||
"versionInfo": "00000001", | ||
"resources": [ | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "server.dc1.peering.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" | ||
} |
37 changes: 37 additions & 0 deletions
37
agent/xds/testdata/endpoints/mesh-gateway-peering-control-plane.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,37 @@ | ||
{ | ||
"versionInfo": "00000001", | ||
"resources": [ | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment", | ||
"clusterName": "server.dc1.peering.11111111-2222-3333-4444-555555555555.consul", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "127.0.0.1", | ||
"portValue": 8503 | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "127.0.0.2", | ||
"portValue": 8503 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"typeUrl": "type.googleapis.com/envoy.config.endpoint.v3.ClusterLoadAssignment", | ||
"nonce": "00000001" | ||
} |
62 changes: 62 additions & 0 deletions
62
agent/xds/testdata/listeners/mesh-gateway-peering-control-plane.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,62 @@ | ||
{ | ||
"versionInfo": "00000001", | ||
"resources": [ | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.listener.v3.Listener", | ||
"name": "default:1.2.3.4:8443", | ||
"address": { | ||
"socketAddress": { | ||
"address": "1.2.3.4", | ||
"portValue": 8443 | ||
} | ||
}, | ||
"filterChains": [ | ||
{ | ||
"filterChainMatch": { | ||
"serverNames": [ | ||
"server.dc1.peering.11111111-2222-3333-4444-555555555555.consul" | ||
] | ||
}, | ||
"filters": [ | ||
{ | ||
"name": "envoy.filters.network.tcp_proxy", | ||
"typedConfig": { | ||
"@type": "type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy", | ||
"statPrefix": "mesh_gateway_local_peering_server.default.dc1", | ||
"cluster": "server.dc1.peering.11111111-2222-3333-4444-555555555555.consul" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"filters": [ | ||
{ | ||
"name": "envoy.filters.network.sni_cluster", | ||
"typedConfig": { | ||
"@type": "type.googleapis.com/envoy.extensions.filters.network.sni_cluster.v3.SniCluster" | ||
} | ||
}, | ||
{ | ||
"name": "envoy.filters.network.tcp_proxy", | ||
"typedConfig": { | ||
"@type": "type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy", | ||
"statPrefix": "mesh_gateway_local.default", | ||
"cluster": "" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"listenerFilters": [ | ||
{ | ||
"name": "envoy.filters.listener.tls_inspector", | ||
"typedConfig": { | ||
"@type": "type.googleapis.com/envoy.extensions.filters.listener.tls_inspector.v3.TlsInspector" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"typeUrl": "type.googleapis.com/envoy.config.listener.v3.Listener", | ||
"nonce": "00000001" | ||
} |
Oops, something went wrong.