From b8bdf77a29816e53a004553bade296cf27c2e0bb Mon Sep 17 00:00:00 2001 From: Arko Dasgupta Date: Tue, 19 Sep 2023 13:30:43 -0700 Subject: [PATCH] Default LB Policy to Least Request https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/load_balancers#weighted-least-request Relates to https://github.com/envoyproxy/gateway/issues/1105 Relevant now that we are introducing multiple endpoints with https://github.com/envoyproxy/gateway/pull/1494 Signed-off-by: Arko Dasgupta --- .../out/authn-single-route-single-match-to-xds.all.json | 2 ++ .../out/authn-single-route-single-match-to-xds.all.yaml | 2 ++ .../authn-single-route-single-match-to-xds.cluster.yaml | 2 ++ .../testdata/translate/out/default-resources.all.yaml | 5 +++++ .../testdata/translate/out/echo-gateway-api.cluster.yaml | 1 + .../translate/out/from-gateway-api-to-xds.all.json | 5 +++++ .../translate/out/from-gateway-api-to-xds.all.yaml | 5 +++++ .../translate/out/from-gateway-api-to-xds.cluster.yaml | 5 +++++ ...-limit-filter-single-route-single-match-to-xds.all.json | 2 ++ ...-limit-filter-single-route-single-match-to-xds.all.yaml | 2 ++ ...it-filter-single-route-single-match-to-xds.cluster.yaml | 2 ++ internal/xds/translator/cluster.go | 2 +- .../http-route-extension-filter.clusters.yaml | 1 + .../testdata/out/extension-xds-ir/http-route.clusters.yaml | 1 + .../translator/testdata/out/xds-ir/accesslog.clusters.yaml | 2 ++ .../xds-ir/authn-multi-route-multi-provider.clusters.yaml | 4 ++++ .../xds-ir/authn-multi-route-single-provider.clusters.yaml | 3 +++ .../testdata/out/xds-ir/authn-ratelimit.clusters.yaml | 5 +++++ .../xds-ir/authn-single-route-single-match.clusters.yaml | 2 ++ .../out/xds-ir/http-route-direct-response.clusters.yaml | 1 + .../testdata/out/xds-ir/http-route-mirror.clusters.yaml | 1 + .../out/xds-ir/http-route-multiple-matches.clusters.yaml | 7 +++++++ .../out/xds-ir/http-route-multiple-mirrors.clusters.yaml | 3 +++ .../testdata/out/xds-ir/http-route-redirect.clusters.yaml | 1 + .../testdata/out/xds-ir/http-route-regex.clusters.yaml | 1 + .../out/xds-ir/http-route-request-headers.clusters.yaml | 1 + .../xds-ir/http-route-response-add-headers.clusters.yaml | 1 + .../http-route-response-add-remove-headers.clusters.yaml | 1 + .../http-route-response-remove-headers.clusters.yaml | 1 + .../http-route-rewrite-root-path-url-prefix.clusters.yaml | 1 + .../xds-ir/http-route-rewrite-url-fullpath.clusters.yaml | 1 + .../out/xds-ir/http-route-rewrite-url-host.clusters.yaml | 1 + .../out/xds-ir/http-route-rewrite-url-prefix.clusters.yaml | 1 + .../out/xds-ir/http-route-weighted-backend.clusters.yaml | 1 + .../http-route-weighted-invalid-backend.clusters.yaml | 1 + .../testdata/out/xds-ir/http-route.clusters.yaml | 1 + .../testdata/out/xds-ir/http2-route.clusters.yaml | 1 + .../out/xds-ir/jsonpatch-invalid-patch.clusters.yaml | 1 + .../out/xds-ir/jsonpatch-missing-resource.clusters.yaml | 1 + .../translator/testdata/out/xds-ir/jsonpatch.clusters.yaml | 1 + .../testdata/out/xds-ir/metrics-virtual-host.clusters.yaml | 1 + .../testdata/out/xds-ir/mixed-tls-jwt-authn.clusters.yaml | 2 ++ .../out/xds-ir/multiple-listeners-same-port.clusters.yaml | 6 ++++++ .../multiple-simple-tcp-route-same-port.clusters.yaml | 5 +++++ .../out/xds-ir/ratelimit-custom-domain.clusters.yaml | 4 ++++ .../testdata/out/xds-ir/ratelimit-sourceip.clusters.yaml | 5 +++++ .../translator/testdata/out/xds-ir/ratelimit.clusters.yaml | 4 ++++ .../testdata/out/xds-ir/simple-tls.clusters.yaml | 1 + .../testdata/out/xds-ir/tcp-route-complex.clusters.yaml | 1 + .../testdata/out/xds-ir/tcp-route-simple.clusters.yaml | 1 + .../out/xds-ir/tcp-route-tls-terminate.clusters.yaml | 1 + .../out/xds-ir/tcp-route-weighted-backend.clusters.yaml | 1 + .../out/xds-ir/tls-route-passthrough.clusters.yaml | 1 + .../translator/testdata/out/xds-ir/tracing.clusters.yaml | 2 ++ .../translator/testdata/out/xds-ir/udp-route.clusters.yaml | 1 + 55 files changed, 117 insertions(+), 1 deletion(-) diff --git a/internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.all.json b/internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.all.json index e50285bbf65..f4f9d8680ce 100644 --- a/internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.all.json +++ b/internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.all.json @@ -231,6 +231,7 @@ }, "serviceName": "httproute/envoy-gateway-system/backend/rule/0" }, + "lbPolicy": "LEAST_REQUEST", "name": "httproute/envoy-gateway-system/backend/rule/0", "outlierDetection": {}, "perConnectionBufferLimitBytes": 32768, @@ -246,6 +247,7 @@ "connectTimeout": "10s", "dnsLookupFamily": "V4_ONLY", "dnsRefreshRate": "30s", + "lbPolicy": "LEAST_REQUEST", "loadAssignment": { "clusterName": "raw_githubusercontent_com_443", "endpoints": [ diff --git a/internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.all.yaml b/internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.all.yaml index 6573b350f18..6af61070831 100644 --- a/internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.all.yaml @@ -131,6 +131,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: httproute/envoy-gateway-system/backend/rule/0 + lbPolicy: LEAST_REQUEST name: httproute/envoy-gateway-system/backend/rule/0 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -142,6 +143,7 @@ xds: connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: raw_githubusercontent_com_443 endpoints: diff --git a/internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.cluster.yaml b/internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.cluster.yaml index b6d92933a7a..abc0f167711 100644 --- a/internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.cluster.yaml +++ b/internal/cmd/egctl/testdata/translate/out/authn-single-route-single-match-to-xds.cluster.yaml @@ -13,6 +13,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: httproute/envoy-gateway-system/backend/rule/0 + lbPolicy: LEAST_REQUEST name: httproute/envoy-gateway-system/backend/rule/0 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -24,6 +25,7 @@ xds: connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: raw_githubusercontent_com_443 endpoints: diff --git a/internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml b/internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml index 2bc0ffa9d87..719a7c9d6d9 100644 --- a/internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/default-resources.all.yaml @@ -609,6 +609,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: httproute/default/backend/rule/0 + lbPolicy: LEAST_REQUEST name: httproute/default/backend/rule/0 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -624,6 +625,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: grpcroute/default/backend/rule/0 + lbPolicy: LEAST_REQUEST name: grpcroute/default/backend/rule/0 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -644,6 +646,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: tlsroute/default/backend/rule/-1 + lbPolicy: LEAST_REQUEST name: tlsroute/default/backend/rule/-1 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -659,6 +662,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: tcproute/default/backend/rule/-1 + lbPolicy: LEAST_REQUEST name: tcproute/default/backend/rule/-1 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -674,6 +678,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: udproute/default/backend/rule/-1 + lbPolicy: LEAST_REQUEST name: udproute/default/backend/rule/-1 outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/cmd/egctl/testdata/translate/out/echo-gateway-api.cluster.yaml b/internal/cmd/egctl/testdata/translate/out/echo-gateway-api.cluster.yaml index a852c0bf694..c4807cbe030 100644 --- a/internal/cmd/egctl/testdata/translate/out/echo-gateway-api.cluster.yaml +++ b/internal/cmd/egctl/testdata/translate/out/echo-gateway-api.cluster.yaml @@ -96,6 +96,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: httproute/envoy-gateway-system/backend/rule/0 + lbPolicy: LEAST_REQUEST name: httproute/envoy-gateway-system/backend/rule/0 outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.json b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.json index 69b234c65cc..79f950b4fd1 100644 --- a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.json +++ b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.json @@ -329,6 +329,7 @@ }, "serviceName": "httproute/default/backend/rule/0" }, + "lbPolicy": "LEAST_REQUEST", "name": "httproute/default/backend/rule/0", "outlierDetection": {}, "perConnectionBufferLimitBytes": 32768, @@ -350,6 +351,7 @@ }, "serviceName": "grpcroute/default/backend/rule/0" }, + "lbPolicy": "LEAST_REQUEST", "name": "grpcroute/default/backend/rule/0", "outlierDetection": {}, "perConnectionBufferLimitBytes": 32768, @@ -379,6 +381,7 @@ }, "serviceName": "tlsroute/default/backend/rule/-1" }, + "lbPolicy": "LEAST_REQUEST", "name": "tlsroute/default/backend/rule/-1", "outlierDetection": {}, "perConnectionBufferLimitBytes": 32768, @@ -400,6 +403,7 @@ }, "serviceName": "tcproute/default/backend/rule/-1" }, + "lbPolicy": "LEAST_REQUEST", "name": "tcproute/default/backend/rule/-1", "outlierDetection": {}, "perConnectionBufferLimitBytes": 32768, @@ -421,6 +425,7 @@ }, "serviceName": "udproute/default/backend/rule/-1" }, + "lbPolicy": "LEAST_REQUEST", "name": "udproute/default/backend/rule/-1", "outlierDetection": {}, "perConnectionBufferLimitBytes": 32768, diff --git a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.yaml b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.yaml index e5e652e57dc..01dc48158f2 100644 --- a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.all.yaml @@ -181,6 +181,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: httproute/default/backend/rule/0 + lbPolicy: LEAST_REQUEST name: httproute/default/backend/rule/0 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -196,6 +197,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: grpcroute/default/backend/rule/0 + lbPolicy: LEAST_REQUEST name: grpcroute/default/backend/rule/0 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -216,6 +218,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: tlsroute/default/backend/rule/-1 + lbPolicy: LEAST_REQUEST name: tlsroute/default/backend/rule/-1 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -231,6 +234,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: tcproute/default/backend/rule/-1 + lbPolicy: LEAST_REQUEST name: tcproute/default/backend/rule/-1 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -246,6 +250,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: udproute/default/backend/rule/-1 + lbPolicy: LEAST_REQUEST name: udproute/default/backend/rule/-1 outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.cluster.yaml b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.cluster.yaml index dc27f21522f..57fee13d4ac 100644 --- a/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.cluster.yaml +++ b/internal/cmd/egctl/testdata/translate/out/from-gateway-api-to-xds.cluster.yaml @@ -13,6 +13,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: httproute/default/backend/rule/0 + lbPolicy: LEAST_REQUEST name: httproute/default/backend/rule/0 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -28,6 +29,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: grpcroute/default/backend/rule/0 + lbPolicy: LEAST_REQUEST name: grpcroute/default/backend/rule/0 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -48,6 +50,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: tlsroute/default/backend/rule/-1 + lbPolicy: LEAST_REQUEST name: tlsroute/default/backend/rule/-1 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -63,6 +66,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: tcproute/default/backend/rule/-1 + lbPolicy: LEAST_REQUEST name: tcproute/default/backend/rule/-1 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -78,6 +82,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: udproute/default/backend/rule/-1 + lbPolicy: LEAST_REQUEST name: udproute/default/backend/rule/-1 outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/cmd/egctl/testdata/translate/out/rate-limit-filter-single-route-single-match-to-xds.all.json b/internal/cmd/egctl/testdata/translate/out/rate-limit-filter-single-route-single-match-to-xds.all.json index 46fbf649718..c6bb84ec728 100644 --- a/internal/cmd/egctl/testdata/translate/out/rate-limit-filter-single-route-single-match-to-xds.all.json +++ b/internal/cmd/egctl/testdata/translate/out/rate-limit-filter-single-route-single-match-to-xds.all.json @@ -231,6 +231,7 @@ }, "serviceName": "httproute/envoy-gateway-system/http-ratelimit/rule/0" }, + "lbPolicy": "LEAST_REQUEST", "name": "httproute/envoy-gateway-system/http-ratelimit/rule/0", "outlierDetection": {}, "perConnectionBufferLimitBytes": 32768, @@ -246,6 +247,7 @@ "connectTimeout": "10s", "dnsLookupFamily": "V4_ONLY", "dnsRefreshRate": "30s", + "lbPolicy": "LEAST_REQUEST", "loadAssignment": { "clusterName": "ratelimit_cluster", "endpoints": [ diff --git a/internal/cmd/egctl/testdata/translate/out/rate-limit-filter-single-route-single-match-to-xds.all.yaml b/internal/cmd/egctl/testdata/translate/out/rate-limit-filter-single-route-single-match-to-xds.all.yaml index d05f2568b59..7f4e0e1b621 100644 --- a/internal/cmd/egctl/testdata/translate/out/rate-limit-filter-single-route-single-match-to-xds.all.yaml +++ b/internal/cmd/egctl/testdata/translate/out/rate-limit-filter-single-route-single-match-to-xds.all.yaml @@ -131,6 +131,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: httproute/envoy-gateway-system/http-ratelimit/rule/0 + lbPolicy: LEAST_REQUEST name: httproute/envoy-gateway-system/http-ratelimit/rule/0 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -142,6 +143,7 @@ xds: connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: ratelimit_cluster endpoints: diff --git a/internal/cmd/egctl/testdata/translate/out/rate-limit-filter-single-route-single-match-to-xds.cluster.yaml b/internal/cmd/egctl/testdata/translate/out/rate-limit-filter-single-route-single-match-to-xds.cluster.yaml index c820495c082..1b9846b62f0 100644 --- a/internal/cmd/egctl/testdata/translate/out/rate-limit-filter-single-route-single-match-to-xds.cluster.yaml +++ b/internal/cmd/egctl/testdata/translate/out/rate-limit-filter-single-route-single-match-to-xds.cluster.yaml @@ -13,6 +13,7 @@ xds: ads: {} resourceApiVersion: V3 serviceName: httproute/envoy-gateway-system/http-ratelimit/rule/0 + lbPolicy: LEAST_REQUEST name: httproute/envoy-gateway-system/http-ratelimit/rule/0 outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -24,6 +25,7 @@ xds: connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: ratelimit_cluster endpoints: diff --git a/internal/xds/translator/cluster.go b/internal/xds/translator/cluster.go index e002989e26c..9d28ac16eec 100644 --- a/internal/xds/translator/cluster.go +++ b/internal/xds/translator/cluster.go @@ -31,7 +31,7 @@ func buildXdsCluster(clusterName string, tSocket *corev3.TransportSocket, protoc cluster := &clusterv3.Cluster{ Name: clusterName, ConnectTimeout: durationpb.New(10 * time.Second), - LbPolicy: clusterv3.Cluster_ROUND_ROBIN, + LbPolicy: clusterv3.Cluster_LEAST_REQUEST, DnsLookupFamily: clusterv3.Cluster_V4_ONLY, CommonLbConfig: &clusterv3.Cluster_CommonLbConfig{ LocalityConfigSpecifier: &clusterv3.Cluster_CommonLbConfig_LocalityWeightedLbConfig_{ diff --git a/internal/xds/translator/testdata/out/extension-xds-ir/http-route-extension-filter.clusters.yaml b/internal/xds/translator/testdata/out/extension-xds-ir/http-route-extension-filter.clusters.yaml index 60a38e62be9..fc88cebd59b 100644 --- a/internal/xds/translator/testdata/out/extension-xds-ir/http-route-extension-filter.clusters.yaml +++ b/internal/xds/translator/testdata/out/extension-xds-ir/http-route-extension-filter.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/extension-xds-ir/http-route.clusters.yaml b/internal/xds/translator/testdata/out/extension-xds-ir/http-route.clusters.yaml index 60a38e62be9..fc88cebd59b 100644 --- a/internal/xds/translator/testdata/out/extension-xds-ir/http-route.clusters.yaml +++ b/internal/xds/translator/testdata/out/extension-xds-ir/http-route.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/accesslog.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/accesslog.clusters.yaml index b19d7db379f..934d8b1015a 100644 --- a/internal/xds/translator/testdata/out/xds-ir/accesslog.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/accesslog.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: direct-route-dest + lbPolicy: LEAST_REQUEST name: direct-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -16,6 +17,7 @@ connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: accesslog|otel-collector.default.svc.cluster.local|4317 endpoints: diff --git a/internal/xds/translator/testdata/out/xds-ir/authn-multi-route-multi-provider.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/authn-multi-route-multi-provider.clusters.yaml index f15b318e54c..70bcee80b86 100644 --- a/internal/xds/translator/testdata/out/xds-ir/authn-multi-route-multi-provider.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/authn-multi-route-multi-provider.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-www.test.com-dest + lbPolicy: LEAST_REQUEST name: first-route-www.test.com-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -20,6 +21,7 @@ ads: {} resourceApiVersion: V3 serviceName: second-route-www.test.com-dest + lbPolicy: LEAST_REQUEST name: second-route-www.test.com-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -29,6 +31,7 @@ connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: localhost_443 endpoints: @@ -62,6 +65,7 @@ ads: {} resourceApiVersion: V3 serviceName: "192_168_1_250_8080" + lbPolicy: LEAST_REQUEST name: "192_168_1_250_8080" outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/authn-multi-route-single-provider.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/authn-multi-route-single-provider.clusters.yaml index 4ed35c6efe0..1a8cd205697 100644 --- a/internal/xds/translator/testdata/out/xds-ir/authn-multi-route-single-provider.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/authn-multi-route-single-provider.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -20,6 +21,7 @@ ads: {} resourceApiVersion: V3 serviceName: second-route-dest + lbPolicy: LEAST_REQUEST name: second-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -29,6 +31,7 @@ connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: localhost_443 endpoints: diff --git a/internal/xds/translator/testdata/out/xds-ir/authn-ratelimit.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/authn-ratelimit.clusters.yaml index 70141a3fb5e..541d945dc55 100644 --- a/internal/xds/translator/testdata/out/xds-ir/authn-ratelimit.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/authn-ratelimit.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -20,6 +21,7 @@ ads: {} resourceApiVersion: V3 serviceName: second-route-dest + lbPolicy: LEAST_REQUEST name: second-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -33,6 +35,7 @@ ads: {} resourceApiVersion: V3 serviceName: third-route-dest + lbPolicy: LEAST_REQUEST name: third-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -42,6 +45,7 @@ connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: ratelimit_cluster endpoints: @@ -85,6 +89,7 @@ ads: {} resourceApiVersion: V3 serviceName: "192_168_1_250_443" + lbPolicy: LEAST_REQUEST name: "192_168_1_250_443" outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/authn-single-route-single-match.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/authn-single-route-single-match.clusters.yaml index e54678fd34f..90f66243f31 100644 --- a/internal/xds/translator/testdata/out/xds-ir/authn-single-route-single-match.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/authn-single-route-single-match.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -16,6 +17,7 @@ connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: localhost_443 endpoints: diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-direct-response.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-direct-response.clusters.yaml index 6d1cfb15221..af1e50c6320 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-direct-response.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-direct-response.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: direct-route-dest + lbPolicy: LEAST_REQUEST name: direct-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-mirror.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-mirror.clusters.yaml index dac161f28ea..36dfc7b6165 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-mirror.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-mirror.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: route-dest + lbPolicy: LEAST_REQUEST name: route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-multiple-matches.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-multiple-matches.clusters.yaml index 0094e2e7595..daf7072f011 100755 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-multiple-matches.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-multiple-matches.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -20,6 +21,7 @@ ads: {} resourceApiVersion: V3 serviceName: second-route-dest + lbPolicy: LEAST_REQUEST name: second-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -33,6 +35,7 @@ ads: {} resourceApiVersion: V3 serviceName: third-route-dest + lbPolicy: LEAST_REQUEST name: third-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -46,6 +49,7 @@ ads: {} resourceApiVersion: V3 serviceName: fourth-route-dest + lbPolicy: LEAST_REQUEST name: fourth-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -59,6 +63,7 @@ ads: {} resourceApiVersion: V3 serviceName: fifth-route-dest + lbPolicy: LEAST_REQUEST name: fifth-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -72,6 +77,7 @@ ads: {} resourceApiVersion: V3 serviceName: sixth-route-dest + lbPolicy: LEAST_REQUEST name: sixth-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -85,6 +91,7 @@ ads: {} resourceApiVersion: V3 serviceName: seventh-route-dest + lbPolicy: LEAST_REQUEST name: seventh-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-multiple-mirrors.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-multiple-mirrors.clusters.yaml index a5b6e0b7641..0296e36dc4e 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-multiple-mirrors.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-multiple-mirrors.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: route-dest + lbPolicy: LEAST_REQUEST name: route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -20,6 +21,7 @@ ads: {} resourceApiVersion: V3 serviceName: mirror-route-dest + lbPolicy: LEAST_REQUEST name: mirror-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -33,6 +35,7 @@ ads: {} resourceApiVersion: V3 serviceName: mirror-route-dest1 + lbPolicy: LEAST_REQUEST name: mirror-route-dest1 outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-redirect.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-redirect.clusters.yaml index e47d197fb06..a19246c6c14 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-redirect.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-redirect.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: redirect-route-dest + lbPolicy: LEAST_REQUEST name: redirect-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-regex.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-regex.clusters.yaml index bd743447700..a21398c504f 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-regex.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-regex.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: regex-route-dest + lbPolicy: LEAST_REQUEST name: regex-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-request-headers.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-request-headers.clusters.yaml index 767d8202781..7e253f6b5be 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-request-headers.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-request-headers.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: request-header-route-dest + lbPolicy: LEAST_REQUEST name: request-header-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-response-add-headers.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-response-add-headers.clusters.yaml index baf28b40375..3c6050b2116 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-response-add-headers.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-response-add-headers.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: response-header-route-dest + lbPolicy: LEAST_REQUEST name: response-header-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-response-add-remove-headers.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-response-add-remove-headers.clusters.yaml index baf28b40375..3c6050b2116 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-response-add-remove-headers.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-response-add-remove-headers.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: response-header-route-dest + lbPolicy: LEAST_REQUEST name: response-header-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-response-remove-headers.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-response-remove-headers.clusters.yaml index baf28b40375..3c6050b2116 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-response-remove-headers.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-response-remove-headers.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: response-header-route-dest + lbPolicy: LEAST_REQUEST name: response-header-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-root-path-url-prefix.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-root-path-url-prefix.clusters.yaml index db792b2b2ce..1a641679539 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-root-path-url-prefix.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-root-path-url-prefix.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: rewrite-route-dest + lbPolicy: LEAST_REQUEST name: rewrite-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-url-fullpath.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-url-fullpath.clusters.yaml index dfc0f368100..6aeeab50483 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-url-fullpath.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-url-fullpath.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: rewrite-route + lbPolicy: LEAST_REQUEST name: rewrite-route outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-url-host.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-url-host.clusters.yaml index db792b2b2ce..1a641679539 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-url-host.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-url-host.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: rewrite-route-dest + lbPolicy: LEAST_REQUEST name: rewrite-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-url-prefix.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-url-prefix.clusters.yaml index db792b2b2ce..1a641679539 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-url-prefix.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-rewrite-url-prefix.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: rewrite-route-dest + lbPolicy: LEAST_REQUEST name: rewrite-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-weighted-backend.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-weighted-backend.clusters.yaml index a23d3e58e8f..c8692b81602 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-weighted-backend.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-weighted-backend.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route-weighted-invalid-backend.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route-weighted-invalid-backend.clusters.yaml index a23d3e58e8f..c8692b81602 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route-weighted-invalid-backend.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route-weighted-invalid-backend.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http-route.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http-route.clusters.yaml index a23d3e58e8f..c8692b81602 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http-route.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http-route.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/http2-route.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/http2-route.clusters.yaml index e532667ad1c..b64f0e3521c 100644 --- a/internal/xds/translator/testdata/out/xds-ir/http2-route.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/http2-route.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/jsonpatch-invalid-patch.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/jsonpatch-invalid-patch.clusters.yaml index a23d3e58e8f..c8692b81602 100755 --- a/internal/xds/translator/testdata/out/xds-ir/jsonpatch-invalid-patch.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/jsonpatch-invalid-patch.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/jsonpatch-missing-resource.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/jsonpatch-missing-resource.clusters.yaml index a23d3e58e8f..c8692b81602 100755 --- a/internal/xds/translator/testdata/out/xds-ir/jsonpatch-missing-resource.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/jsonpatch-missing-resource.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/jsonpatch.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/jsonpatch.clusters.yaml index 9ee9031493a..b171eb11f71 100644 --- a/internal/xds/translator/testdata/out/xds-ir/jsonpatch.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/jsonpatch.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/metrics-virtual-host.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/metrics-virtual-host.clusters.yaml index a23d3e58e8f..c8692b81602 100644 --- a/internal/xds/translator/testdata/out/xds-ir/metrics-virtual-host.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/metrics-virtual-host.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/mixed-tls-jwt-authn.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/mixed-tls-jwt-authn.clusters.yaml index e54678fd34f..90f66243f31 100755 --- a/internal/xds/translator/testdata/out/xds-ir/mixed-tls-jwt-authn.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/mixed-tls-jwt-authn.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -16,6 +17,7 @@ connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: localhost_443 endpoints: diff --git a/internal/xds/translator/testdata/out/xds-ir/multiple-listeners-same-port.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/multiple-listeners-same-port.clusters.yaml index 0b8dde5e0f2..6ac76261382 100644 --- a/internal/xds/translator/testdata/out/xds-ir/multiple-listeners-same-port.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/multiple-listeners-same-port.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -20,6 +21,7 @@ ads: {} resourceApiVersion: V3 serviceName: second-route-dest + lbPolicy: LEAST_REQUEST name: second-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -33,6 +35,7 @@ ads: {} resourceApiVersion: V3 serviceName: third-route-dest + lbPolicy: LEAST_REQUEST name: third-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -46,6 +49,7 @@ ads: {} resourceApiVersion: V3 serviceName: fourth-route-dest + lbPolicy: LEAST_REQUEST name: fourth-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -59,6 +63,7 @@ ads: {} resourceApiVersion: V3 serviceName: tcp-route-dest + lbPolicy: LEAST_REQUEST name: tcp-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -72,6 +77,7 @@ ads: {} resourceApiVersion: V3 serviceName: tls-route-dest + lbPolicy: LEAST_REQUEST name: tls-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/multiple-simple-tcp-route-same-port.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/multiple-simple-tcp-route-same-port.clusters.yaml index 56d2a21c1f5..30c51562dd2 100644 --- a/internal/xds/translator/testdata/out/xds-ir/multiple-simple-tcp-route-same-port.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/multiple-simple-tcp-route-same-port.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: tcp-route-simple-dest + lbPolicy: LEAST_REQUEST name: tcp-route-simple-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -20,6 +21,7 @@ ads: {} resourceApiVersion: V3 serviceName: tcp-route-simple-1-dest + lbPolicy: LEAST_REQUEST name: tcp-route-simple-1-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -33,6 +35,7 @@ ads: {} resourceApiVersion: V3 serviceName: tcp-route-simple-2-dest + lbPolicy: LEAST_REQUEST name: tcp-route-simple-2-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -46,6 +49,7 @@ ads: {} resourceApiVersion: V3 serviceName: tcp-route-simple-3-dest + lbPolicy: LEAST_REQUEST name: tcp-route-simple-3-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -59,6 +63,7 @@ ads: {} resourceApiVersion: V3 serviceName: tcp-route-simple-4-dest + lbPolicy: LEAST_REQUEST name: tcp-route-simple-4-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/ratelimit-custom-domain.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/ratelimit-custom-domain.clusters.yaml index 5f7139d83ef..abbaddb675a 100644 --- a/internal/xds/translator/testdata/out/xds-ir/ratelimit-custom-domain.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/ratelimit-custom-domain.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -20,6 +21,7 @@ ads: {} resourceApiVersion: V3 serviceName: second-route-dest + lbPolicy: LEAST_REQUEST name: second-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -33,6 +35,7 @@ ads: {} resourceApiVersion: V3 serviceName: third-route-dest + lbPolicy: LEAST_REQUEST name: third-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -42,6 +45,7 @@ connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: ratelimit_cluster endpoints: diff --git a/internal/xds/translator/testdata/out/xds-ir/ratelimit-sourceip.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/ratelimit-sourceip.clusters.yaml index 51da7f41e25..c986902e551 100644 --- a/internal/xds/translator/testdata/out/xds-ir/ratelimit-sourceip.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/ratelimit-sourceip.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -20,6 +21,7 @@ ads: {} resourceApiVersion: V3 serviceName: second-route-dest + lbPolicy: LEAST_REQUEST name: second-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -33,6 +35,7 @@ ads: {} resourceApiVersion: V3 serviceName: third-route-dest + lbPolicy: LEAST_REQUEST name: third-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -46,6 +49,7 @@ ads: {} resourceApiVersion: V3 serviceName: fourth-route-dest + lbPolicy: LEAST_REQUEST name: fourth-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -55,6 +59,7 @@ connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: ratelimit_cluster endpoints: diff --git a/internal/xds/translator/testdata/out/xds-ir/ratelimit.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/ratelimit.clusters.yaml index 7be5fecf2ea..17dd9eb89fc 100644 --- a/internal/xds/translator/testdata/out/xds-ir/ratelimit.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/ratelimit.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -20,6 +21,7 @@ ads: {} resourceApiVersion: V3 serviceName: second-route-dest + lbPolicy: LEAST_REQUEST name: second-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -33,6 +35,7 @@ ads: {} resourceApiVersion: V3 serviceName: third-route-dest + lbPolicy: LEAST_REQUEST name: third-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -42,6 +45,7 @@ connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: ratelimit_cluster endpoints: diff --git a/internal/xds/translator/testdata/out/xds-ir/simple-tls.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/simple-tls.clusters.yaml index a23d3e58e8f..c8692b81602 100644 --- a/internal/xds/translator/testdata/out/xds-ir/simple-tls.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/simple-tls.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: first-route-dest + lbPolicy: LEAST_REQUEST name: first-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/tcp-route-complex.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/tcp-route-complex.clusters.yaml index e7ab7ab5f6d..a4f9048c783 100644 --- a/internal/xds/translator/testdata/out/xds-ir/tcp-route-complex.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/tcp-route-complex.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: tcp-route-complex-dest + lbPolicy: LEAST_REQUEST name: tcp-route-complex-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/tcp-route-simple.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/tcp-route-simple.clusters.yaml index bc82a2b5252..2e9e07958c4 100644 --- a/internal/xds/translator/testdata/out/xds-ir/tcp-route-simple.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/tcp-route-simple.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: tcp-route-simple-dest + lbPolicy: LEAST_REQUEST name: tcp-route-simple-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/tcp-route-tls-terminate.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/tcp-route-tls-terminate.clusters.yaml index 46b71dee3de..e4bea76097a 100644 --- a/internal/xds/translator/testdata/out/xds-ir/tcp-route-tls-terminate.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/tcp-route-tls-terminate.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: tls-terminate-dest + lbPolicy: LEAST_REQUEST name: tls-terminate-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/tcp-route-weighted-backend.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/tcp-route-weighted-backend.clusters.yaml index f1624fcc9c8..b3af74933f2 100644 --- a/internal/xds/translator/testdata/out/xds-ir/tcp-route-weighted-backend.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/tcp-route-weighted-backend.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: tcp-route-weighted-backend-dest + lbPolicy: LEAST_REQUEST name: tcp-route-weighted-backend-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/tls-route-passthrough.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/tls-route-passthrough.clusters.yaml index 81d9e3a9da4..6601b3394c7 100644 --- a/internal/xds/translator/testdata/out/xds-ir/tls-route-passthrough.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/tls-route-passthrough.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: tls-passthrough-dest + lbPolicy: LEAST_REQUEST name: tls-passthrough-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 diff --git a/internal/xds/translator/testdata/out/xds-ir/tracing.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/tracing.clusters.yaml index 39fd4c562bc..ad7cf5eedf5 100644 --- a/internal/xds/translator/testdata/out/xds-ir/tracing.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/tracing.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: direct-route-dest + lbPolicy: LEAST_REQUEST name: direct-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768 @@ -16,6 +17,7 @@ connectTimeout: 10s dnsLookupFamily: V4_ONLY dnsRefreshRate: 30s + lbPolicy: LEAST_REQUEST loadAssignment: clusterName: tracing|otel-collector.monitoring.svc.cluster.local|4317 endpoints: diff --git a/internal/xds/translator/testdata/out/xds-ir/udp-route.clusters.yaml b/internal/xds/translator/testdata/out/xds-ir/udp-route.clusters.yaml index 56220006145..3afb28bd407 100644 --- a/internal/xds/translator/testdata/out/xds-ir/udp-route.clusters.yaml +++ b/internal/xds/translator/testdata/out/xds-ir/udp-route.clusters.yaml @@ -7,6 +7,7 @@ ads: {} resourceApiVersion: V3 serviceName: udp-route-dest + lbPolicy: LEAST_REQUEST name: udp-route-dest outlierDetection: {} perConnectionBufferLimitBytes: 32768