Skip to content

Commit fcf4cda

Browse files
authored
Update template.hcl
1 parent 0011436 commit fcf4cda

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

nomad/template.hcl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@ job "${__SERVICE__}-${__ENVIRONMENT__}" {
22
datacenters = ${__DATACENTERS__}
33
namespace = "${__NAMESPACE__}"
44

5+
#constraint {
6+
# attribute = "${meta.role}"
7+
# operator = "!="
8+
# value = "rcg-ingress"
9+
#}
10+
511
constraint {
6-
attribute = "${meta.role}"
7-
operator = "!="
8-
value = "rcg-ingress"
12+
attribute = "${node.unique.name}"
13+
operator = "="
14+
value = "nomad-hallo-apps.novalocal"
915
}
1016

1117
constraint {

0 commit comments

Comments
 (0)