mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-25 17:46:14 +01:00
2e61e7ef3c
Signed-off-by: main <magic_rb@redalder.org>
31 lines
383 B
HCL
31 lines
383 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 {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|