From 9370e9ef5a5a79bbfa460bcabd7831f3c3755feb Mon Sep 17 00:00:00 2001 From: NathanFlurry Date: Thu, 6 Jun 2024 17:26:32 +0000 Subject: [PATCH] chore(infra): move cdn to api-traefik-provider (#857) ## Changes --- infra/tf/k8s_infra/traefik.tf | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/infra/tf/k8s_infra/traefik.tf b/infra/tf/k8s_infra/traefik.tf index b6597b466b..46961b97b0 100644 --- a/infra/tf/k8s_infra/traefik.tf +++ b/infra/tf/k8s_infra/traefik.tf @@ -58,9 +58,7 @@ resource "helm_release" "traefik" { } : null additionalArguments = [ - # "--providers.http.endpoint=http://rivet-api-internal-monolith.rivet-service.svc.cluster.local/traefik-provider/config/core?token=${module.traefik_secrets.values["rivet/api_traefik_provider/token"]}", - # LEGACY: - "--providers.http.endpoint=http://rivet-api-route.rivet-service.svc.cluster.local/traefik/config/core?token=${module.traefik_secrets.values["rivet/api_route/token"]}", + "--providers.http.endpoint=http://rivet-api-internal-monolith.rivet-service.svc.cluster.local/traefik-provider/config/core?token=${module.traefik_secrets.values["rivet/api_traefik_provider/token"]}", "--providers.http.pollInterval=2.5s", # See docs/infrastructure/TIMEOUTS.md "--entryPoints.web.transport.lifeCycle.graceTimeOut=60s", @@ -71,14 +69,14 @@ resource "helm_release" "traefik" { "--entryPoints.websecure.transport.respondingTimeouts.writeTimeout=120s", ] - logs = { - general = { - level = "DEBUG" - } - access = { - enabled = true - } - } + # logs = { + # general = { + # level = "DEBUG" + # } + # access = { + # enabled = true + # } + # } deployment = { replicas = local.service_traefik.count