Enable WASM filter per route
Configure a WASM filter at the Route level
提出问题
route:
cluster: web_service
typed_per_filter_config:
my_wasm_plugin:
"@type": type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm
config:
name: "my_plugin"
http_filters:
- name: my_wasm_plugin
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.wasm.v3.Wasm
config:
name: "my_wasm_plugin"
root_id: "my_root_id"
# if your wasm filter requires custom configuration you can add
# as follows
configuration:
"@type": "type.googleapis.com/google.protobuf.StringValue"
value: |
{}
vm_config:
vm_id: "my_vm_id"
code:
local:
filename: "lib/envoy_filter_http_wasm_example.wasm"
- name: envoy.filters.http.router
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
- name: listener_1
address:解决问题
最后更新于