Skip to content

Commit

Permalink
lua-cluster-specifier: Fix upstream flakiness (#297)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Nov 19, 2024
1 parent 2647865 commit be2e4e1
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions lua-cluster-specifier/envoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -52,5 +80,5 @@ static_resources:
- endpoint:
address:
socket_address:
address: httpbin.org
port_value: 80
address: 127.0.0.1
port_value: 10001

0 comments on commit be2e4e1

Please sign in to comment.