github.com/hernad/nomad@v1.6.112/e2e/isolation/input/alloc_exec.hcl (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "alloc_exec" { 5 6 constraint { 7 attribute = "${attr.kernel.name}" 8 value = "linux" 9 } 10 11 group "group" { 12 13 update { 14 min_healthy_time = "2s" 15 } 16 17 reschedule { 18 attempts = 0 19 unlimited = false 20 } 21 22 restart { 23 attempts = 0 24 mode = "fail" 25 } 26 27 task "sleep" { 28 driver = "exec" 29 30 config { 31 command = "sleep" 32 args = ["infinity"] 33 } 34 35 resources { 36 cpu = 10 37 memory = 16 38 } 39 } 40 } 41 }