This commit is contained in:
Daniel Berteaud 2023-12-21 22:24:32 +01:00
parent c40b09d3e0
commit e60c3604e8
2 changed files with 6 additions and 7 deletions

View File

@ -1,8 +1,8 @@
[[ $c := merge .egress_gw . -]]
job [[ .egress_gw.instance | toJSON ]] {
job [[ .instance | toJSON ]] {
[[ template "common/job_start.tpl" $c ]]
[[ template "common/job_start" $c ]]
group "egress-gateway" {
@ -12,7 +12,7 @@ job [[ .egress_gw.instance | toJSON ]] {
# Terminating gateway definition
service {
name = "[[ .egress_gw.instance ]][[ $c.consul.suffix ]]"
name = "[[ .instance ]][[ $c.consul.suffix ]]"
connect {
gateway {
proxy {}
@ -32,7 +32,7 @@ job [[ .egress_gw.instance | toJSON ]] {
# Access the CA certificate
volumes = ["../alloc/data:/data"]
}
[[ template "common/resources.tpl" $c.consul.connect.resources ]]
[[ template "common/resources" $c.consul.connect.resources ]]
}
}
}

View File

@ -1,9 +1,8 @@
---
# Name of the Nomad job
instance: egress-gateway
egress_gw:
# Name of the Nomad job
instance: egress-gateway
# Number of instances
count: 1