github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/e2e/fabio/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      task "fabio" {
    12        driver = "docker"
    13  
    14        config {
    15          image        = "fabiolb/fabio"
    16          network_mode = "host"
    17        }
    18  
    19        resources {
    20          cpu    = 100
    21          memory = 64
    22  
    23          network {
    24            mbits = 20
    25  
    26            port "lb" {
    27              static = 9999
    28            }
    29  
    30            port "ui" {
    31              static = 9998
    32            }
    33          }
    34        }
    35      }
    36    }
    37  }