Cleanup
This commit is contained in:
parent
c40b09d3e0
commit
e60c3604e8
|
@ -1,8 +1,8 @@
|
||||||
[[ $c := merge .egress_gw . -]]
|
[[ $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" {
|
group "egress-gateway" {
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ job [[ .egress_gw.instance | toJSON ]] {
|
||||||
|
|
||||||
# Terminating gateway definition
|
# Terminating gateway definition
|
||||||
service {
|
service {
|
||||||
name = "[[ .egress_gw.instance ]][[ $c.consul.suffix ]]"
|
name = "[[ .instance ]][[ $c.consul.suffix ]]"
|
||||||
connect {
|
connect {
|
||||||
gateway {
|
gateway {
|
||||||
proxy {}
|
proxy {}
|
||||||
|
@ -32,7 +32,7 @@ job [[ .egress_gw.instance | toJSON ]] {
|
||||||
# Access the CA certificate
|
# Access the CA certificate
|
||||||
volumes = ["../alloc/data:/data"]
|
volumes = ["../alloc/data:/data"]
|
||||||
}
|
}
|
||||||
[[ template "common/resources.tpl" $c.consul.connect.resources ]]
|
[[ template "common/resources" $c.consul.connect.resources ]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
# Name of the Nomad job
|
||||||
|
instance: egress-gateway
|
||||||
egress_gw:
|
egress_gw:
|
||||||
# Name of the Nomad job
|
|
||||||
instance: egress-gateway
|
|
||||||
|
|
||||||
# Number of instances
|
# Number of instances
|
||||||
count: 1
|
count: 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user