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

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