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

     1  job "fabio" {
     2    datacenters = ["dc1", "dc2"]
     3    type        = "system"
     4  
     5    constraint {
     6      attribute = "${attr.kernel.name}"
     7      value     = "linux"
     8    }
     9  
    10    group "fabio" {
    11      network {
    12        port "lb" {
    13          static = 9999
    14        }
    15  
    16        port "ui" {
    17          static = 9998
    18        }
    19      }
    20      task "fabio" {
    21        driver = "docker"
    22  
    23        config {
    24          image        = "fabiolb/fabio"
    25          network_mode = "host"
    26        }
    27  
    28        resources {
    29          cpu    = 100
    30          memory = 64
    31        }
    32      }
    33    }
    34  }