From 9aa0dc0f4fcfe007ce5bf1a2133c36dd78d6962c Mon Sep 17 00:00:00 2001 From: Jack Kleeman Date: Mon, 26 Jun 2023 20:51:27 +0100 Subject: [PATCH 1/2] Fix envoy dynamic forward proxy config The current config is not correctly load balancing over different endpoints. We rely on the feature merged in https://github.com/envoyproxy/envoy/pull/26420; this should be in envoy 1.27, in the meantime we can use dev envoy. --- docs/services/deployment/kubernetes.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/services/deployment/kubernetes.md b/docs/services/deployment/kubernetes.md index 68c10c81..970979bc 100644 --- a/docs/services/deployment/kubernetes.md +++ b/docs/services/deployment/kubernetes.md @@ -114,7 +114,8 @@ spec: value: 127.0.0.1:10001 # ... - name: envoy - image: envoyproxy/envoy:distroless-v1.26.1 + # use a bleeding edge image until v1.17 is released + image: envoyproxy/envoy:distroless-dev-dd557fd6a7db5d5f7c23b8bdea725bae0458bc73 volumeMounts: - name: envoy-config mountPath: /etc/envoy @@ -158,9 +159,7 @@ data: - name: envoy.filters.http.dynamic_forward_proxy typed_config: '@type': type.googleapis.com/envoy.extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig - dns_cache_config: - name: dynamic_forward_proxy_cache_config - dns_refresh_rate: 5s + sub_cluster_config: {} - name: envoy.filters.http.router typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router @@ -177,7 +176,6 @@ data: name: envoy.clusters.dynamic_forward_proxy typed_config: '@type': type.googleapis.com/envoy.extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig - dns_cache_config: - name: dynamic_forward_proxy_cache_config - dns_refresh_rate: 5s + sub_clusters_config: + lb_policy: ROUND_ROBIN ``` From 9dd46953688e5e49872ebfcd4e1152815de616da Mon Sep 17 00:00:00 2001 From: Jack Kleeman Date: Thu, 3 Aug 2023 14:06:52 +0100 Subject: [PATCH 2/2] Envoy v1.27 is released --- docs/services/deployment/kubernetes.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/services/deployment/kubernetes.md b/docs/services/deployment/kubernetes.md index 970979bc..a79f6300 100644 --- a/docs/services/deployment/kubernetes.md +++ b/docs/services/deployment/kubernetes.md @@ -114,8 +114,7 @@ spec: value: 127.0.0.1:10001 # ... - name: envoy - # use a bleeding edge image until v1.17 is released - image: envoyproxy/envoy:distroless-dev-dd557fd6a7db5d5f7c23b8bdea725bae0458bc73 + image: envoyproxy/envoy:distroless-v1.27-latest volumeMounts: - name: envoy-config mountPath: /etc/envoy