health: fix middleware ref namespace prefix (restore site from 404)
Some checks failed
ci/woodpecker/push/default Pipeline was canceled

My previous commit referenced the new limiter as `health-rate-limit@kubernetescrd`,
omitting the namespace prefix. Traefik CRD middleware refs are
`<namespace>-<name>@kubernetescrd`, and the Middleware lives in the `traefik` ns,
so the router couldn't resolve it — Traefik failed the whole
health.viktorbarzin.me router and returned 404 on every path (the app + pod were
healthy throughout; verified via port-forward).

Correct it to `traefik-health-rate-limit@kubernetescrd`, matching the working
traefik-tripit-rate-limit / traefik-actualbudget-rate-limit references.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Viktor Barzin 2026-06-14 17:43:08 +00:00
parent 086ff85911
commit 2df6ebf305

View file

@ -209,8 +209,12 @@ module "ingress" {
# The redesigned SPA bursts well past the default 10/50 limiter on each page # The redesigned SPA bursts well past the default 10/50 limiter on each page
# load (shell + fonts + a 5-8 call API burst). Swap the shared limiter for a # load (shell + fonts + a 5-8 call API burst). Swap the shared limiter for a
# health-specific one (100/1000), mirroring tripit/immich/actualbudget. # health-specific one (100/1000), mirroring tripit/immich/actualbudget.
# The ref MUST carry the middleware's namespace prefix: the CRD lives in the
# `traefik` ns, so it's `traefik-health-rate-limit@kubernetescrd` (same form as
# traefik-tripit-rate-limit). Without the prefix Traefik can't resolve it and
# 404s the whole router.
skip_default_rate_limit = true skip_default_rate_limit = true
extra_middlewares = ["health-rate-limit@kubernetescrd"] extra_middlewares = ["traefik-health-rate-limit@kubernetescrd"]
extra_annotations = { extra_annotations = {
"gethomepage.dev/enabled" = "true" "gethomepage.dev/enabled" = "true"
"gethomepage.dev/name" = "Health" "gethomepage.dev/name" = "Health"