github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/events/input/deploy.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 min_healthy_time = "1s" 17 } 18 19 network { 20 port "db" { 21 static = 9000 22 } 23 } 24 25 task "one" { 26 driver = "raw_exec" 27 28 env { 29 version = "1" 30 } 31 32 config { 33 image = "busybox:1" 34 command = "nc" 35 36 # change args to update the job, the only changes 37 args = ["-ll", "-p", "1234", "-e", "/bin/cat"] 38 ports = ["db"] 39 } 40 41 resources { 42 cpu = 20 43 memory = 20 44 } 45 } 46 } 47 }