【发布时间】:2021-11-30 21:31:47
【问题描述】:
我有以下过滤器:
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: proper-filter-name-here
namespace: istio-system
spec:
workloadSelector:
labels:
app: istio-ingressgateway
configPatches:
- applyTo: NETWORK_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
name: "envoy.http_connection_manager"
patch:
operation: INSERT_BEFORE
value:
name: envoy.lua
typed_config:
"@type": "type.googleapis.com/envoy.config.filter.http.lua.v2.Lua"
inlineCode: |
function envoy_on_request(request_handle)
request_handle:logDebug("Hello World!")
end
我正在检查网关的日志,它确实没有看起来像应用了过滤器。如何调试 EnvoyFilter?在哪里可以查看每个请求应用了哪些过滤器?
【问题讨论】:
标签: debugging istio envoyproxy