github.com/hernad/nomad@v1.6.112/e2e/nodedrain/input/drain_ignore_system.nomad (about)

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