github.com/smithx10/nomad@v0.9.1-rc1/e2e/metrics/input/simpleweb.nomad (about)

     1  job "nginx" {
     2    datacenters = ["dc1"]
     3    type = "system"
     4  
     5    group "simpleweb" {
     6  
     7      update {
     8        stagger          = "5s"
     9        max_parallel     = 1
    10        min_healthy_time = "10s"
    11        healthy_deadline = "2m"
    12        auto_revert      = true
    13      }
    14  
    15      task "simpleweb" {
    16        driver = "docker"
    17  
    18        config {
    19          image = "nginxdemos/hello"
    20  
    21          port_map {
    22            http = 8080
    23          }
    24        }
    25  
    26        resources {
    27          cpu    = 500
    28          memory = 128
    29  
    30          network {
    31            mbits = 1
    32            port "http" {
    33            }
    34          }
    35        }
    36  
    37        service {
    38          port = "http"
    39          name = "simpleweb"
    40          tags = ["simpleweb"]
    41  
    42          check {
    43            type     = "tcp"
    44            port     = "http"
    45            interval = "10s"
    46            timeout  = "2s"
    47          }
    48        }
    49      }
    50    }
    51  }
    52