github.com/hernad/nomad@v1.6.112/e2e/nodedrain/input/drain_migrate.nomad (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "drain_migrate" { 5 6 constraint { 7 attribute = "${attr.kernel.name}" 8 value = "linux" 9 } 10 11 group "group" { 12 13 ephemeral_disk { 14 migrate = true 15 size = "101" 16 } 17 18 task "task" { 19 driver = "docker" 20 21 config { 22 image = "busybox:1" 23 command = "/bin/sh" 24 args = ["-c", "echo \"data from $NOMAD_ALLOC_ID\" >> /alloc/data/migrate.txt && sleep 120"] 25 } 26 27 resources { 28 cpu = 256 29 memory = 128 30 } 31 } 32 } 33 }