Sanity check job with nomad :D
This commit is contained in:
parent
5a1afb4a07
commit
a3fdc5fcc7
31
infra/nigel-nomad/sanity-service.nomad.hcl
Normal file
31
infra/nigel-nomad/sanity-service.nomad.hcl
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# This 'service' job is just a simple nginx container that lives here as a kind of sanity check
|
||||||
|
# PORT: 8000
|
||||||
|
# DNS : sanity.nigel.local
|
||||||
|
job "health" {
|
||||||
|
type = "service"
|
||||||
|
|
||||||
|
group "health" {
|
||||||
|
count = 1
|
||||||
|
network {
|
||||||
|
port "http" {
|
||||||
|
static = 8000
|
||||||
|
to = 80
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
service {
|
||||||
|
name = "health-svc"
|
||||||
|
port = "http"
|
||||||
|
provider = "nomad"
|
||||||
|
}
|
||||||
|
|
||||||
|
task "health-setup" {
|
||||||
|
driver = "docker"
|
||||||
|
|
||||||
|
config {
|
||||||
|
image = "nginx:latest"
|
||||||
|
ports = [ "http" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user