github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/events/input/initial.nomad (about) 1 job "deployment_auto.nomad" { 2 datacenters = ["dc1", "dc2"] 3 4 constraint { 5 attribute = "${attr.kernel.name}" 6 value = "linux" 7 } 8 9 group "one" { 10 count = 3 11 12 update { 13 max_parallel = 3 14 auto_promote = true 15 canary = 2 16 } 17 18 network { 19 port "db" { 20 static = 9000 21 } 22 } 23 24 task "one" { 25 driver = "docker" 26 27 env { 28 version = "0" 29 } 30 config { 31 image = "busybox:1" 32 command = "nc" 33 34 # change args to update the job, the only changes 35 args = ["-ll", "-p", "1234", "-e", "/bin/cat"] 36 ports = ["db"] 37 } 38 39 resources { 40 cpu = 20 41 memory = 20 42 } 43 } 44 } 45 }