mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-30 12:06:13 +01:00
86d13b4f40
Signed-off-by: Magic_RB <magic_rb@redalder.org>
31 lines
397 B
HCL
31 lines
397 B
HCL
variable "datacenters" {
|
|
type = list(string)
|
|
}
|
|
|
|
job "gateway-mesh" {
|
|
datacenters = var.datacenters
|
|
|
|
group "envoy" {
|
|
network {
|
|
mode = "bridge"
|
|
|
|
port "mesh_wan" {
|
|
host_network = "mesh"
|
|
}
|
|
}
|
|
|
|
service {
|
|
name = "mesh-gateway"
|
|
|
|
port = "mesh_wan"
|
|
|
|
connect {
|
|
gateway {
|
|
mesh {}
|
|
proxy {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|