From 34ee9682d01d53670fb01c96d9128386808bf284 Mon Sep 17 00:00:00 2001 From: Ben Martin Date: Tue, 15 Apr 2025 20:38:33 +0000 Subject: [PATCH] chore(ollama): onboard to traefiks connect-enabled provider --- modules/ollama/jobspec.nomad.hcl | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/modules/ollama/jobspec.nomad.hcl b/modules/ollama/jobspec.nomad.hcl index 09c0e27..ed72940 100644 --- a/modules/ollama/jobspec.nomad.hcl +++ b/modules/ollama/jobspec.nomad.hcl @@ -133,41 +133,14 @@ job "ollama" { } } } - } - } - group "open-webui-ingress-group" { - - network { - mode = "bridge" - port "inbound" { - to = 8080 - } - } - - service { - port = "inbound" tags = [ "traefik.enable=true", "traefik.http.routers.openwebui.rule=Host(`eos.brmartin.co.uk`)", - "traefik.http.routers.openwebui.entrypoints=websecure" + "traefik.http.routers.openwebui.entrypoints=websecure", + "traefik.consulcatalog.connect=true", ] - - connect { - gateway { - ingress { - listener { - port = 8080 - protocol = "http" - service { - name = "ollama-open-webui" - hosts = ["*"] - } - } - } - } - } } } }