2022-10-04 18:51:04 +00:00
|
|
|
#!/bin/bash
|
2023-03-28 22:48:58 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
2023-03-28 22:48:58 +00:00
|
|
|
|
2022-10-04 18:51:04 +00:00
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
2022-11-07 16:02:04 +00:00
|
|
|
upsert_config_entry alpha '
|
|
|
|
kind = "proxy-defaults"
|
|
|
|
name = "global"
|
|
|
|
config {
|
|
|
|
protocol = "tcp"
|
|
|
|
}
|
|
|
|
'
|
|
|
|
|
|
|
|
upsert_config_entry alpha '
|
|
|
|
kind = "exported-services"
|
|
|
|
name = "default"
|
|
|
|
services = [
|
|
|
|
{
|
|
|
|
name = "s1"
|
|
|
|
consumers = [
|
|
|
|
{
|
|
|
|
peer_name = "alpha-to-primary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name = "s2"
|
|
|
|
consumers = [
|
|
|
|
{
|
|
|
|
peer_name = "alpha-to-primary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
'
|
2022-10-04 18:51:04 +00:00
|
|
|
|
|
|
|
register_services alpha
|
|
|
|
|
|
|
|
gen_envoy_bootstrap s1 19001 alpha
|
|
|
|
gen_envoy_bootstrap s2 19002 alpha
|
|
|
|
gen_envoy_bootstrap mesh-gateway 19003 alpha true
|