2022-10-10 19:55:28 +00:00
|
|
|
#!/bin/bash
|
2023-03-28 22:48:58 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2022-10-10 19:55:28 +00:00
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
2022-11-07 16:02:04 +00:00
|
|
|
upsert_config_entry primary '
|
|
|
|
kind = "proxy-defaults"
|
|
|
|
name = "global"
|
|
|
|
config {
|
|
|
|
protocol = "tcp"
|
|
|
|
}
|
|
|
|
'
|
|
|
|
upsert_config_entry primary '
|
|
|
|
kind = "mesh"
|
|
|
|
peering {
|
|
|
|
peer_through_mesh_gateways = true
|
|
|
|
}
|
|
|
|
'
|
|
|
|
|
2022-10-10 19:55:28 +00:00
|
|
|
register_services primary
|
|
|
|
|
|
|
|
gen_envoy_bootstrap s1 19000 primary
|
|
|
|
gen_envoy_bootstrap mesh-gateway 19001 primary true
|