Skip to content

Commit

Permalink
docs : update wasm service example plugin config as a bootstrap exten…
Browse files Browse the repository at this point in the history
…sion (envoyproxy#15914)

The PR updates the example plugin configuration section related to wasm service in the envoy documentation.

Signed-off-by: Lahiru Udayanga <[email protected]>
Signed-off-by: Douglas Reid <[email protected]>
  • Loading branch information
NomadXD authored and douglas-reid committed Apr 19, 2021
1 parent 3c98344 commit 3ae91fd
Showing 1 changed file with 11 additions and 3 deletions.
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.

0 comments on commit 3ae91fd

Please sign in to comment.