github.com/hernad/nomad@v1.6.112/e2e/disconnectedclients/input/lost_simple.nomad (about)

     1  # Copyright (c) HashiCorp, Inc.
     2  # SPDX-License-Identifier: MPL-2.0
     3  
     4  job "lost_simple" {
     5  
     6    datacenters = ["dc1", "dc2"]
     7  
     8    group "group" {
     9  
    10      count = 2
    11  
    12      constraint {
    13        attribute = "${attr.kernel.name}"
    14        value     = "linux"
    15      }
    16  
    17      constraint {
    18        operator = "distinct_hosts"
    19        value    = "true"
    20      }
    21  
    22      task "task" {
    23        driver = "docker"
    24  
    25        config {
    26          image   = "busybox:1"
    27          command = "httpd"
    28          args    = ["-v", "-f", "-p", "8001", "-h", "/var/www"]
    29        }
    30  
    31        resources {
    32          cpu    = 128
    33          memory = 128
    34        }
    35      }
    36    }
    37  }