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

46 lines
741 B
Plaintext
Raw Normal View History

job "simpleweb" {
2019-04-01 19:52:58 +00:00
datacenters = ["dc1"]
2019-10-11 12:00:05 +00:00
type = "system"
2019-04-01 19:52:58 +00:00
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
2019-04-01 19:52:58 +00:00
group "simpleweb" {
network {
port "http" {
to = 8080
}
}
2019-04-01 19:52:58 +00:00
task "simpleweb" {
driver = "docker"
config {
image = "nginx:latest"
2019-04-01 19:52:58 +00:00
2020-09-14 18:55:17 +00:00
ports = ["http"]
}
2019-04-01 19:52:58 +00:00
resources {
cpu = 256
2019-04-01 19:52:58 +00:00
memory = 128
}
// TODO(tgross): this isn't passing health checks
2019-04-01 19:52:58 +00:00
service {
port = "http"
name = "simpleweb"
tags = ["simpleweb"]
check {
type = "tcp"
port = "http"
interval = "10s"
timeout = "2s"
}
}
}
}
}