From e5ffb4033c349440c7f78872091db993f2e6b5ae Mon Sep 17 00:00:00 2001 From: wizzdom Date: Wed, 11 Oct 2023 01:14:58 +0100 Subject: [PATCH] add health check on /healthcheck --- jobs/user-projects/general/nova-timetable.hcl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jobs/user-projects/general/nova-timetable.hcl b/jobs/user-projects/general/nova-timetable.hcl index 5c94ff3..790340f 100644 --- a/jobs/user-projects/general/nova-timetable.hcl +++ b/jobs/user-projects/general/nova-timetable.hcl @@ -15,6 +15,12 @@ job "nova-timetable" { service { port = "http" name = "nova-timetable" + check { + type = "http" + path = "/healthcheck" + interval = "10s" + timeout = "2s" + } tags = [ "traefik.enable=true",