github.com/uchennaokeke444/nomad@v0.11.8/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      task "hello" {
    13        driver = "raw_exec"
    14  
    15        config {
    16          command = "local/hello"
    17        }
    18  
    19        artifact {
    20          source      = "https://nomad-community-demo.s3.amazonaws.com/hellov1"
    21          destination = "local/hello"
    22          mode        = "file"
    23        }
    24  
    25        resources {
    26          cpu    = 500
    27          memory = 256
    28  
    29          network {
    30            mbits = 10
    31            port  "web" {}
    32          }
    33        }
    34  
    35        service {
    36          name = "hello"
    37          tags = ["urlprefix-hello/"]
    38          port = "web"
    39  
    40          check {
    41            name     = "alive"
    42            type     = "http"
    43            path     = "/"
    44            interval = "10s"
    45            timeout  = "2s"
    46          }
    47        }
    48      }
    49    }
    50  }