github.com/hernad/nomad@v1.6.112/e2e/metrics/input/fabio.nomad (about)

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