Wasm 服務
WasmService 組態指定用於背景或隨需活動的單例或每個工作者的 Wasm 服務。
範例外掛程式組態
bootstrap_extensions:
- name: envoy.bootstrap.wasm
typed_config:
"@type": type.googleapis.com/envoy.extensions.wasm.v3.WasmService
singleton: true
config:
name: "my_plugin"
configuration:
"@type": type.googleapis.com/google.protobuf.StringValue
value: |
{
"my_config_value": "my_value"
}
vm_config:
code:
local:
filename: "/etc/envoy_filter_http_wasm_example.wasm"
先前的程式碼片段會從本機磁碟上的 Wasm 二進位檔設定外掛程式單例服務。