From be2e4e1d55aef887afaee69a578806d0d27ec0f6 Mon Sep 17 00:00:00 2001 From: phlax Date: Tue, 19 Nov 2024 16:52:52 +0000 Subject: [PATCH] lua-cluster-specifier: Fix upstream flakiness (#297) Signed-off-by: Ryan Northey --- lua-cluster-specifier/envoy.yaml | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/lua-cluster-specifier/envoy.yaml b/lua-cluster-specifier/envoy.yaml index 178ced5..0658c20 100644 --- a/lua-cluster-specifier/envoy.yaml +++ b/lua-cluster-specifier/envoy.yaml @@ -41,6 +41,34 @@ static_resources: typed_config: "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router + - address: + socket_address: + address: 0.0.0.0 + port_value: 10001 + filter_chains: + - filters: + - name: envoy.filters.network.http_connection_manager + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager + stat_prefix: example_cluster_upstream + route_config: + name: local_route + virtual_hosts: + - name: upstream + domains: + - "*" + routes: + - match: + prefix: "/" + direct_response: + status: 200 + body: + inline_string: "Helo!\n" + http_filters: + - name: envoy.filters.http.router + typed_config: + "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router + clusters: - name: example_cluster type: STRICT_DNS @@ -52,5 +80,5 @@ static_resources: - endpoint: address: socket_address: - address: httpbin.org - port_value: 80 + address: 127.0.0.1 + port_value: 10001