oc create -f <myEnvoyFilterFile>
$ oc create -f < myEnvoyFilterFile>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: ingress-case-insensitive
namespace: istio-system
spec:
configPatches:
- applyTo: HTTP_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
name: "envoy.filters.network.http_connection_manager"
subFilter:
name: "envoy.filters.http.router"
patch:
operation: INSERT_BEFORE
value:
name: envoy.lua
typed_config:
"@type": "type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua"
inlineCode: |
function envoy_on_request(request_handle)
local path = request_handle:headers():get(":path")
request_handle:headers():replace(":path", string.lower(path))
end
apiVersion : networking.istio.io/v1alpha3
kind : EnvoyFilter
metadata :
name : ingress- case- insensitive
namespace : istio- system
spec :
configPatches :
- applyTo : HTTP_FILTER
match :
context : GATEWAY
listener :
filterChain :
filter :
name : "envoy.filters.network.http_connection_manager"
subFilter :
name : "envoy.filters.http.router"
patch :
operation : INSERT_BEFORE
value :
name : envoy.lua
typed_config :
"@type" : "type.googleapis.com/envoy.extensions.filters.http.lua.v3.Lua"
inlineCode : |
function envoy_on_request(request_handle)
local path = request_handle:headers():get(":path")
request_handle:headers():replace(":path", string.lower(path))
end
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow