open-nomad/e2e/metrics/input/simpleweb.nomad
Tim Gross c9d92f845f
e2e: add a Windows client to test runner (#6735)
* Adds a constraint to prevent tests from landing on Windows
* Improve Terraform output for mixed windows/linux clients
* Makes some Windows client config fixes from 0.10.2 testing
2019-11-25 13:31:00 -05:00

55 lines
887 B
HCL

job "nginx" {
datacenters = ["dc1"]
type = "system"
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "simpleweb" {
update {
stagger = "5s"
max_parallel = 1
min_healthy_time = "10s"
healthy_deadline = "2m"
auto_revert = true
}
task "simpleweb" {
driver = "docker"
config {
image = "nginxdemos/hello"
port_map {
http = 8080
}
}
resources {
cpu = 500
memory = 128
network {
mbits = 1
port "http"{}
}
}
service {
port = "http"
name = "simpleweb"
tags = ["simpleweb"]
check {
type = "tcp"
port = "http"
interval = "10s"
timeout = "2s"
}
}
}
}
}