Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs : update wasm service example plugin config as a bootstrap extension #15914

Merged
merged 4 commits into from
Apr 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions docs/root/configuration/other_features/wasm_service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,23 @@ Example plugin configuration:

.. code-block:: yaml

wasm:
config:
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:
runtime: "envoy.wasm.runtime.v8"
code:
local:
filename: "/etc/envoy_filter_http_wasm_example.wasm"
singleton: true

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