mirror of https://github.com/status-im/consul.git
34 lines
596 B
Bash
34 lines
596 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -eEuo pipefail
|
||
|
|
||
|
upsert_config_entry primary '
|
||
|
Kind = "service-defaults"
|
||
|
Name = "s2"
|
||
|
Protocol = "http"
|
||
|
EnvoyExtensions = [
|
||
|
{
|
||
|
Name = "builtin/wasm"
|
||
|
Arguments = {
|
||
|
Protocol = "http"
|
||
|
ListenerType = "inbound"
|
||
|
PluginConfig = {
|
||
|
VmConfig = {
|
||
|
Code = {
|
||
|
Local = {
|
||
|
Filename = "/workdir/primary/data/dummy.wasm"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
Configuration = "plugin configuration"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
'
|
||
|
|
||
|
register_services primary
|
||
|
|
||
|
gen_envoy_bootstrap s1 19000 primary
|
||
|
gen_envoy_bootstrap s2 19001 primary
|