From 2a7d91e33302dec00ca0b4282021d5f1a730622f Mon Sep 17 00:00:00 2001 From: James Hackett Date: Sun, 8 Oct 2023 02:17:55 +0100 Subject: [PATCH] Update after some testing and validation No "200" status for our healthchecks to validate job readiness. Workaround is to remove the check. --- jobs/traefik.hcl | 2 +- jobs/user-projects/general/nova-timetable.hcl | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/jobs/traefik.hcl b/jobs/traefik.hcl index 3813cb7..0ded606 100644 --- a/jobs/traefik.hcl +++ b/jobs/traefik.hcl @@ -24,7 +24,7 @@ job "traefik" { task "traefik" { driver = "docker" config { - image = "traefik:2.8" + image = "traefik" network_mode = "host" volumes = [ diff --git a/jobs/user-projects/general/nova-timetable.hcl b/jobs/user-projects/general/nova-timetable.hcl index 76611c3..5c94ff3 100644 --- a/jobs/user-projects/general/nova-timetable.hcl +++ b/jobs/user-projects/general/nova-timetable.hcl @@ -15,17 +15,12 @@ job "nova-timetable" { service { port = "http" name = "nova-timetable" - check { - type = "http" - path = "/" - interval = "10s" - timeout = "2s" - } tags = [ "traefik.enable=true", "traefik.http.routers.nova-timetable.rule=Host(`timetable.redbrick.dcu.ie`)", - "traefik.http.routers.nova-timetable.tls=true", + "traefik.http.routers.nova-timetable.entrypoints=web,websecure", + "traefik.http.routers.nova-timetable.tls.certresolver=lets-encrypt", ] }