mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-12 09:51:59 +01:00
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 {}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|