Skip to content

Commit

Permalink
chore(infra): move cdn to api-traefik-provider (#857)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
NathanFlurry committed Jun 6, 2024
1 parent d0cdb38 commit 9370e9e
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions infra/tf/k8s_infra/traefik.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Expand Down

0 comments on commit 9370e9e

Please sign in to comment.