github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/e2e/metrics/input/helloworld.nomad (about)

     1  job "helloworld" {
     2    datacenters = ["dc1"]
     3  
     4    constraint {
     5      attribute = "${attr.kernel.name}"
     6      value     = "linux"
     7    }
     8  
     9    group "hello" {
    10      count = 3
    11  
    12      network {
    13        port "web" {}
    14      }
    15  
    16      task "hello" {
    17        driver = "raw_exec"
    18  
    19        config {
    20          command = "local/hello"
    21        }
    22  
    23        artifact {
    24          source      = "https://nomad-community-demo.s3.amazonaws.com/hellov1"
    25          destination = "local/hello"
    26          mode        = "file"
    27        }
    28  
    29        resources {
    30          cpu    = 500
    31          memory = 256
    32        }
    33  
    34        service {
    35          name = "hello"
    36          tags = ["urlprefix-hello/"]
    37          port = "web"
    38  
    39          check {
    40            name     = "alive"
    41            type     = "http"
    42            path     = "/"
    43            interval = "10s"
    44            timeout  = "2s"
    45          }
    46        }
    47      }
    48    }
    49  }