From 75bd71d55b06c70cfe78ea0db80fa1cc02ed2a61 Mon Sep 17 00:00:00 2001 From: Yingyu Cheng Date: Wed, 31 Jan 2018 11:33:31 +0800 Subject: [PATCH 1/2] config: hints for using v4 dns to avoid 503 (#2478) Signed-off-by: Yingyu Cheng --- configs/google_com_proxy.v2.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/google_com_proxy.v2.yaml b/configs/google_com_proxy.v2.yaml index 4e095e000249..d853fb31ba56 100644 --- a/configs/google_com_proxy.v2.yaml +++ b/configs/google_com_proxy.v2.yaml @@ -28,6 +28,9 @@ static_resources: - name: service_google connect_timeout: 0.25s type: LOGICAL_DNS + # uncomment the following line if your environment don't have v6 network + # or envoy may try to talk to v6 endpoint and you will get 503 error + # dns_lookup_family: V4_ONLY lb_policy: ROUND_ROBIN hosts: [{ socket_address: { address: google.com, port_value: 443 }}] tls_context: { sni: www.google.com } From bd42d42944aeea5421c526bbe16a5414d550f1c1 Mon Sep 17 00:00:00 2001 From: Yingyu Cheng Date: Thu, 1 Feb 2018 11:24:05 +0800 Subject: [PATCH 2/2] fixing the poor English Signed-off-by: Yingyu Cheng --- configs/google_com_proxy.v2.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configs/google_com_proxy.v2.yaml b/configs/google_com_proxy.v2.yaml index d853fb31ba56..b0ffdbfb1dc9 100644 --- a/configs/google_com_proxy.v2.yaml +++ b/configs/google_com_proxy.v2.yaml @@ -28,8 +28,7 @@ static_resources: - name: service_google connect_timeout: 0.25s type: LOGICAL_DNS - # uncomment the following line if your environment don't have v6 network - # or envoy may try to talk to v6 endpoint and you will get 503 error + # Uncomment the following line if your environment doesn't have v6 network access or Envoy may try to talk to a v6 endpoint which will result in a 503 error. # dns_lookup_family: V4_ONLY lb_policy: ROUND_ROBIN hosts: [{ socket_address: { address: google.com, port_value: 443 }}]