open-nomad/e2e/metrics/input/fabio.nomad

38 lines
559 B
Plaintext
Raw Normal View History

2019-03-08 17:56:02 +00:00
job "fabio" {
datacenters = ["dc1", "dc2"]
2019-10-11 12:00:05 +00:00
type = "system"
2019-03-08 17:56:02 +00:00
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
2019-03-08 17:56:02 +00:00
group "fabio" {
task "fabio" {
driver = "docker"
2019-10-11 12:00:05 +00:00
2019-03-08 17:56:02 +00:00
config {
2019-10-11 12:00:05 +00:00
image = "fabiolb/fabio"
2019-03-08 17:56:02 +00:00
network_mode = "host"
}
resources {
cpu = 100
memory = 64
2019-10-11 12:00:05 +00:00
2019-03-08 17:56:02 +00:00
network {
mbits = 20
2019-10-11 12:00:05 +00:00
2019-03-08 17:56:02 +00:00
port "lb" {
static = 9999
}
2019-10-11 12:00:05 +00:00
2019-03-08 17:56:02 +00:00
port "ui" {
static = 9998
}
}
}
}
}
}