prole/supabase/helm/knoe-supabase/templates/kong
chrisfu e61e6a83b5 fix(supabase): kong /healthz service URL — drop self-reference
Follow-up to 23f3f14. With the checksum annotation in place, `helm
upgrade` did start rolling Kong forward, but the new pod never became
Ready: `rollout status` timed out with
  "1 old replicas are pending termination"

Kong's ConfigMap contains the /healthz route correctly, the BackendConfig
is HTTP /healthz, but the Kong process itself refuses to start cleanly
when one of its services has `url: http://127.0.0.1:8000/` -- Kong's own
proxy port. This self-reference apparently trips the declarative-config
parser (undocumented; symptomatic only).

Switch to a RFC-2606 `.invalid` placeholder. The request-termination
plugin short-circuits before any DNS lookup or upstream connection, so
a non-resolvable URL is functionally equivalent and Kong's parser has
nothing to complain about.

Same change in both places we define the /healthz route:
- supabase/helm/knoe-supabase/templates/kong/config.yaml (supabase-kong)
- etc/init_kong.sh inline kong.yml heredoc (knoe-svc-kong)

The knoe-svc-kong backend was already HEALTHY with the self-referential
URL -- different Kong instance, possibly different parser path -- but
keeping the two configs aligned so future edits don't drift.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 15:45:33 -07:00
..
_helpers.tpl stabilize unattended GKE Supabase/CNPG deployment 2026-04-10 15:53:58 -07:00
backendconfig.yaml fix(net): GCE BackendConfig rejects type: TCP; switch to HTTP /healthz 2026-04-21 12:05:40 -07:00
config.yaml fix(supabase): kong /healthz service URL — drop self-reference 2026-04-21 15:45:33 -07:00
deployment.yaml fix(supabase): kong pod needs checksum annotation to rollout on ConfigMap change 2026-04-21 14:50:09 -07:00
ingress.yaml fix(net): BackendConfig healthchecks + externally-managed supabase-kong ingress 2026-04-21 10:31:06 -07:00
service.yaml fix(net): BackendConfig healthchecks + externally-managed supabase-kong ingress 2026-04-21 10:31:06 -07:00
serviceaccount.yaml stabilize unattended GKE Supabase/CNPG deployment 2026-04-10 15:53:58 -07:00