From edec1d992a65a9343609cd5d7e86e4b2b61d305e Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 15 Mar 2022 12:02:55 -0700 Subject: [PATCH] Remove web and metrics entrypoints from services --- nomad/blocky/blocky.nomad | 1 + nomad/metrics/grafana.nomad | 1 + nomad/metrics/prometheus.nomad | 1 + nomad/mysql/adminer.nomad | 1 + nomad/nextcloud/nextcloud.nomad | 1 + nomad/redis/rediscommander.nomad | 1 + nomad/traefik/traefik.nomad | 2 +- nomad/whoami.nomad | 1 + 8 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nomad/blocky/blocky.nomad b/nomad/blocky/blocky.nomad index d897379..1f114c5 100644 --- a/nomad/blocky/blocky.nomad +++ b/nomad/blocky/blocky.nomad @@ -75,6 +75,7 @@ job "blocky" { tags = [ "traefik.enable=true", + "traefik.http.routers.blocky-api.entryPoints=websecure", ] } diff --git a/nomad/metrics/grafana.nomad b/nomad/metrics/grafana.nomad index 97a8477..c1d8ade 100644 --- a/nomad/metrics/grafana.nomad +++ b/nomad/metrics/grafana.nomad @@ -52,6 +52,7 @@ job "grafana" { tags = [ "traefik.enable=true", + "traefik.http.routers.grafana.entryPoints=websecure", ] } diff --git a/nomad/metrics/prometheus.nomad b/nomad/metrics/prometheus.nomad index 6d6196a..29fc23c 100644 --- a/nomad/metrics/prometheus.nomad +++ b/nomad/metrics/prometheus.nomad @@ -54,6 +54,7 @@ job "prometheus" { // TODO: Remove traefik tags tags = [ "traefik.enable=true", + "traefik.http.routers.prometheus.entryPoints=websecure", ] } diff --git a/nomad/mysql/adminer.nomad b/nomad/mysql/adminer.nomad index 7f59335..edad1c2 100644 --- a/nomad/mysql/adminer.nomad +++ b/nomad/mysql/adminer.nomad @@ -45,6 +45,7 @@ job "adminer" { tags = [ "traefik.enable=true", + "traefik.http.routers.adminer.entryPoints=websecure", ] } diff --git a/nomad/nextcloud/nextcloud.nomad b/nomad/nextcloud/nextcloud.nomad index 4ecf255..c976a38 100644 --- a/nomad/nextcloud/nextcloud.nomad +++ b/nomad/nextcloud/nextcloud.nomad @@ -58,6 +58,7 @@ job "nextcloud" { tags = [ "traefik.enable=true", + "traefik.http.routers.nextcloud.entryPoints=websecure", ] } diff --git a/nomad/redis/rediscommander.nomad b/nomad/redis/rediscommander.nomad index d348e80..a5f634a 100644 --- a/nomad/redis/rediscommander.nomad +++ b/nomad/redis/rediscommander.nomad @@ -40,6 +40,7 @@ job "rediscommander" { tags = [ "traefik.enable=true", + "traefik.http.routers.rediscommander.entryPoints=websecure", ] } diff --git a/nomad/traefik/traefik.nomad b/nomad/traefik/traefik.nomad index 3ab082e..53752b6 100644 --- a/nomad/traefik/traefik.nomad +++ b/nomad/traefik/traefik.nomad @@ -51,7 +51,7 @@ job "traefik" { tags = [ "traefik.enable=true", - "traefik.http.routers.traefik_dashboard.entryPoints=web,websecure", + "traefik.http.routers.traefik_dashboard.entryPoints=websecure", "traefik.http.routers.traefik_dashboard.rule=Host(`traefik.${var.base_hostname}`)", "traefik.http.routers.traefik_dashboard.service=api@internal", "traefik.http.routers.traefik_dashboard.tls=true", diff --git a/nomad/whoami.nomad b/nomad/whoami.nomad index 6fd378f..877b6a0 100644 --- a/nomad/whoami.nomad +++ b/nomad/whoami.nomad @@ -49,6 +49,7 @@ job "whoami" { tags = [ "traefik.enable=true", + "traefik.http.routers.whoami.entryPoints=websecure", ] }