From a3fdc5fcc74e62e60a0c477bafcc3481251667f3 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 10 May 2025 15:38:16 -0700 Subject: [PATCH] Sanity check job with nomad :D --- infra/nigel-nomad/sanity-service.nomad.hcl | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 infra/nigel-nomad/sanity-service.nomad.hcl diff --git a/infra/nigel-nomad/sanity-service.nomad.hcl b/infra/nigel-nomad/sanity-service.nomad.hcl new file mode 100644 index 0000000..370681b --- /dev/null +++ b/infra/nigel-nomad/sanity-service.nomad.hcl @@ -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" ] + } + } + } +} \ No newline at end of file