github.com/hernad/nomad@v1.6.112/e2e/namespaces/input/namespace_default.nomad (about)

     1  # Copyright (c) HashiCorp, Inc.
     2  # SPDX-License-Identifier: MPL-2.0
     3  
     4  job "namespace_default" {
     5  
     6    datacenters = ["dc1", "dc2"]
     7  
     8    constraint {
     9      attribute = "${attr.kernel.name}"
    10      value     = "linux"
    11    }
    12  
    13    group "group" {
    14  
    15      task "task" {
    16  
    17        driver = "raw_exec"
    18  
    19        config {
    20          command = "/bin/sh"
    21          args    = ["-c", "sleep 300"]
    22        }
    23  
    24        resources {
    25          cpu    = 256
    26          memory = 128
    27        }
    28      }
    29    }
    30  }