Skip to content

fix(functions): reload kong after edge runtime restart#4990

Open
okedeji wants to merge 1 commit intosupabase:developfrom
okedeji:fix/kong-dns-stale-edge-runtime
Open

fix(functions): reload kong after edge runtime restart#4990
okedeji wants to merge 1 commit intosupabase:developfrom
okedeji:fix/kong-dns-stale-edge-runtime

Conversation

@okedeji
Copy link

@okedeji okedeji commented Mar 25, 2026

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

After supabase functions serve restarts the Edge Runtime container (on file change or initial serve), Kong's DNS cache still points to the old container IP, causing 502 errors on /functions/v1/* endpoints.

closes #4757

What is the new behavior?

Runs kong reload after each Edge Runtime restart to flush DNS cache and resolve the new container IP.

Additional context

The reload is non-disruptive. Kong flushes DNS without dropping in-flight connections. If the reload fails, a warning is printed to stderr and execution continues.

@okedeji okedeji requested a review from a team as a code owner March 25, 2026 17:19
@okedeji okedeji force-pushed the fix/kong-dns-stale-edge-runtime branch from 008b444 to ebc3bd7 Compare March 25, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Edge functions return 502 Bad Gateway after running supabase functions serve (CLI 2.72.7 and Podman 4.9.3)

1 participant