mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-12 18:01:59 +01:00
86d13b4f40
Signed-off-by: Magic_RB <magic_rb@redalder.org>
30 lines
397 B
HCL
30 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 {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|