Skip to content

Commit be2e4e1

Browse files
authored
lua-cluster-specifier: Fix upstream flakiness (#297)
Signed-off-by: Ryan Northey <[email protected]>
1 parent 2647865 commit be2e4e1

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

lua-cluster-specifier/envoy.yaml

+30-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,34 @@ static_resources:
4141
typed_config:
4242
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
4343

44+
- address:
45+
socket_address:
46+
address: 0.0.0.0
47+
port_value: 10001
48+
filter_chains:
49+
- filters:
50+
- name: envoy.filters.network.http_connection_manager
51+
typed_config:
52+
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
53+
stat_prefix: example_cluster_upstream
54+
route_config:
55+
name: local_route
56+
virtual_hosts:
57+
- name: upstream
58+
domains:
59+
- "*"
60+
routes:
61+
- match:
62+
prefix: "/"
63+
direct_response:
64+
status: 200
65+
body:
66+
inline_string: "Helo!\n"
67+
http_filters:
68+
- name: envoy.filters.http.router
69+
typed_config:
70+
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
71+
4472
clusters:
4573
- name: example_cluster
4674
type: STRICT_DNS
@@ -52,5 +80,5 @@ static_resources:
5280
- endpoint:
5381
address:
5482
socket_address:
55-
address: httpbin.org
56-
port_value: 80
83+
address: 127.0.0.1
84+
port_value: 10001

0 commit comments

Comments
 (0)