Last active
September 6, 2021 02:07
-
-
Save dio/f365269c7d3aa5f7b2b71d2e28185abb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/examples/lua/Dockerfile-proxy b/examples/lua/Dockerfile-proxy | |
index a2ea90d434..2ae88ee47e 100644 | |
--- a/examples/lua/Dockerfile-proxy | |
+++ b/examples/lua/Dockerfile-proxy | |
@@ -1,4 +1,4 @@ | |
-FROM envoyproxy/envoy-dev:latest | |
+FROM envoyproxy/envoy:v1.19.0 | |
ADD ./lib/mylibrary.lua /lib/mylibrary.lua | |
COPY ./envoy.yaml /etc/envoy.yaml | |
RUN chmod go+r /etc/envoy.yaml /lib/mylibrary.lua | |
diff --git a/examples/lua/envoy.yaml b/examples/lua/envoy.yaml | |
index e287dac120..cfb7496514 100644 | |
--- a/examples/lua/envoy.yaml | |
+++ b/examples/lua/envoy.yaml | |
@@ -19,6 +19,17 @@ static_resources: | |
domains: | |
- "*" | |
routes: | |
+ - match: | |
+ prefix: "/health" | |
+ headers: | |
+ - name: ":method" | |
+ exact_match: "GET" | |
+ typed_per_filter_config: | |
+ envoy.filters.http.lua: | |
+ "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.LuaPerRoute | |
+ disabled: true | |
+ route: | |
+ cluster: web_service | |
- match: | |
prefix: "/" | |
route: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/examples/lua/Dockerfile-proxy b/examples/lua/Dockerfile-proxy | |
index a2ea90d434..2ae88ee47e 100644 | |
--- a/examples/lua/Dockerfile-proxy | |
+++ b/examples/lua/Dockerfile-proxy | |
@@ -1,4 +1,4 @@ | |
-FROM envoyproxy/envoy-dev:latest | |
+FROM envoyproxy/envoy:v1.19.0 | |
ADD ./lib/mylibrary.lua /lib/mylibrary.lua | |
COPY ./envoy.yaml /etc/envoy.yaml | |
RUN chmod go+r /etc/envoy.yaml /lib/mylibrary.lua | |
diff --git a/examples/lua/envoy.yaml b/examples/lua/envoy.yaml | |
index e287dac120..20f6d9190c 100644 | |
--- a/examples/lua/envoy.yaml | |
+++ b/examples/lua/envoy.yaml | |
@@ -19,6 +19,19 @@ static_resources: | |
domains: | |
- "*" | |
routes: | |
+ - match: | |
+ prefix: "/health" | |
+ headers: | |
+ - name: ":method" | |
+ exact_match: "GET" | |
+ typed_per_filter_config: | |
+ envoy.filters.http.lua: | |
+ "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.LuaPerRoute | |
+ disabled: true | |
+ direct_response: | |
+ status: 200 | |
+ body: | |
+ inline_string: "ok" | |
- match: | |
prefix: "/" | |
route: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment