github.com/hernad/nomad@v1.6.112/e2e/nodedrain/input/drain_simple.nomad (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "drain_simple" { 5 6 constraint { 7 attribute = "${attr.kernel.name}" 8 value = "linux" 9 } 10 11 group "group" { 12 13 task "task" { 14 driver = "docker" 15 16 config { 17 image = "busybox:1" 18 command = "/bin/sh" 19 args = ["-c", "sleep 300"] 20 } 21 22 resources { 23 cpu = 256 24 memory = 128 25 } 26 } 27 } 28 }