Pangolin: point badger apiBaseUrl at FQDN so Traefik in kube-system can reach it
Traefik runs in kube-system, so the short DNS name "pangolin" that Pangolin's default `internal_hostname` uses does not resolve. Set both `server.internal_hostname` and `server.badger_override` to `pangolin.pangolin.svc.cluster.local` so the badger middleware and internal callbacks resolve from any namespace. Fixes the HTTP 500 on `https://paperclip.basicstack.de/` after cross-namespace IngressRoute wiring was fixed in DEV-457. Refs: DEV-457 Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
672387e678
commit
40c1857a7c
1 changed files with 6 additions and 0 deletions
|
|
@ -24,6 +24,12 @@ data:
|
||||||
|
|
||||||
server:
|
server:
|
||||||
secret: "REPLACE_WITH_SECRET_FROM_SEALED_SECRET"
|
secret: "REPLACE_WITH_SECRET_FROM_SEALED_SECRET"
|
||||||
|
# DEV-457: Traefik runs in kube-system; the short hostname "pangolin"
|
||||||
|
# (Pangolin's default) doesn't resolve there. Point badger + internal
|
||||||
|
# callbacks at the FQDN so the badger middleware can call back to the
|
||||||
|
# Pangolin API.
|
||||||
|
internal_hostname: "pangolin.pangolin.svc.cluster.local"
|
||||||
|
badger_override: "http://pangolin.pangolin.svc.cluster.local:3001/api/v1"
|
||||||
cors:
|
cors:
|
||||||
origins:
|
origins:
|
||||||
- "https://pangolin.basicstack.de"
|
- "https://pangolin.basicstack.de"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue