github.com/bigcommerce/nomad@v0.9.3-bc/e2e/affinities/input/single_affinity.nomad (about) 1 job "test1" { 2 datacenters = ["dc1", "dc2"] 3 type = "service" 4 5 group "test1" { 6 count = 5 7 affinity { 8 attribute ="${node.datacenter}" 9 operator = "=" 10 value = "dc1" 11 weight = 100 12 } 13 task "test" { 14 driver = "raw_exec" 15 16 config { 17 command = "bash" 18 args = ["-c", "sleep 15000"] 19 } 20 } 21 } 22 }