Wasm service

The WasmService configuration specifies a singleton or per-worker Wasm service for background or on-demand activities.

Example plugin configuration:

  1. bootstrap_extensions:
  2. - name: envoy.bootstrap.wasm
  3. typed_config:
  4. "@type": type.googleapis.com/envoy.extensions.wasm.v3.WasmService
  5. singleton: true
  6. config:
  7. name: "my_plugin"
  8. configuration:
  9. "@type": type.googleapis.com/google.protobuf.StringValue
  10. value: |
  11. {
  12. "my_config_value": "my_value"
  13. }
  14. vm_config:
  15. runtime: "envoy.wasm.runtime.v8"
  16. code:
  17. local:
  18. filename: "/etc/envoy_filter_http_wasm_example.wasm"

The preceding snippet configures a plugin singleton service from a Wasm binary on local disk.