github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/e2e/events/input/initial.nomad (about) 1 job "deployment_auto.nomad" { 2 datacenters = ["dc1"] 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 task "one" { 19 driver = "raw_exec" 20 21 env { 22 version = "0" 23 } 24 config { 25 command = "/bin/sleep" 26 27 # change args to update the job, the only changes 28 args = ["1000000"] 29 } 30 31 resources { 32 cpu = 20 33 memory = 20 34 } 35 } 36 } 37 }