Skip to content

Commit

Permalink
fix(tunnel): add legacy route for api-route for gg nodes (#767)
Browse files Browse the repository at this point in the history
For backwards compat
  • Loading branch information
NathanFlurry committed May 15, 2024
1 parent 46e3bf0 commit f2e05ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion infra/tf/k8s_infra/traefik.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module "traefik_secrets" {
source = "../modules/secrets"

keys = [
"rivet/api_route/token",
"rivet/api_traefik_provider/token",
]
}
Expand Down Expand Up @@ -64,7 +65,9 @@ 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"]}",
# "--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.pollInterval=2.5s",
# See docs/infrastructure/TIMEOUTS.md
"--entryPoints.web.transport.lifeCycle.graceTimeOut=60s",
Expand Down
6 changes: 6 additions & 0 deletions infra/tf/k8s_infra/traefik_tunnel.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ locals {
service_namespace = kubernetes_namespace.rivet_service.metadata[0].name
service_port = 80
},
# LEGACY: Route to api-route
"api-route" = {
service = "rivet-api-route"
service_namespace = kubernetes_namespace.rivet_service.metadata[0].name
service_port = 80
},
# LEGACY: Addresses a random Nomad server.
"nomad" = {
service = "nomad-server"
Expand Down

0 comments on commit f2e05ab

Please sign in to comment.