github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/nodedrain/input/drain_simple.nomad (about)

     1  job "drain_simple" {
     2    datacenters = ["dc1", "dc2"]
     3  
     4    constraint {
     5      attribute = "${attr.kernel.name}"
     6      value     = "linux"
     7    }
     8  
     9    group "group" {
    10  
    11      task "task" {
    12        driver = "docker"
    13  
    14        config {
    15          image   = "busybox:1"
    16          command = "/bin/sh"
    17          args    = ["-c", "sleep 300"]
    18        }
    19  
    20        resources {
    21          cpu    = 256
    22          memory = 128
    23        }
    24      }
    25    }
    26  }