Skip to content

[v18] Kubernetes: Handle GOAWAY requests#61256

Merged
rosstimothy merged 2 commits intobranch/v18from
bot/backport-61142-branch/v18
Nov 17, 2025
Merged

[v18] Kubernetes: Handle GOAWAY requests#61256
rosstimothy merged 2 commits intobranch/v18from
bot/backport-61142-branch/v18

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy commented Nov 11, 2025

Backport #61142 and #61264 to branch/v18

changelog: GOAWAY errors received from Kubernetes API Servers configured with a non-zero --goaway-chance are now forward to clients to be retried.

This is an attempt to address #57766.

When a request is terminated because the upstream Kubernetes API
Server GOAWAY chance is exceeded, clients are informed to retry
by replying with a 429 status code and a Retry-After header.

This deviates from the approaches taken in
#57881 and
#60695 to favor
simplicity and avoid buffering request data in a teleport process.
The downside to this approach is that it requires clients to properly
handle retry requests.
Follow up to #61142 which
sets the response body so that clients which only look at the reason and
not the headers will behave appropriately.
@rosstimothy rosstimothy added this pull request to the merge queue Nov 17, 2025
Merged via the queue into branch/v18 with commit c2eab4b Nov 17, 2025
40 checks passed
@rosstimothy rosstimothy deleted the bot/backport-61142-branch/v18 branch November 17, 2025 14:15
@doggydogworld doggydogworld mentioned this pull request Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants