2022-06-28 19:52:25 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
2022-11-07 16:02:04 +00:00
|
|
|
upsert_config_entry alpha '
|
|
|
|
kind = "proxy-defaults"
|
|
|
|
name = "global"
|
|
|
|
config {
|
|
|
|
protocol = "http"
|
|
|
|
}
|
|
|
|
'
|
|
|
|
|
|
|
|
upsert_config_entry alpha '
|
|
|
|
kind = "exported-services"
|
|
|
|
name = "default"
|
|
|
|
services = [
|
|
|
|
{
|
|
|
|
name = "s2"
|
|
|
|
consumers = [
|
|
|
|
{
|
|
|
|
peer = "alpha-to-primary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
'
|
|
|
|
|
2022-06-28 19:52:25 +00:00
|
|
|
register_services alpha
|
|
|
|
|
|
|
|
gen_envoy_bootstrap s2 19002 alpha
|
|
|
|
gen_envoy_bootstrap mesh-gateway 19003 alpha true
|