Skip to content

[v17] Kubernetes: Handle GOAWAY requests#61255

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

[v17] Kubernetes: Handle GOAWAY requests#61255
rosstimothy merged 2 commits intobranch/v17from
bot/backport-61142-branch/v17

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

@rosstimothy rosstimothy commented Nov 11, 2025

Backport #61142 and #61264 to branch/v17

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 force-pushed the bot/backport-61142-branch/v17 branch from 1a0cf59 to c39a600 Compare November 17, 2025 13:51
@rosstimothy rosstimothy added this pull request to the merge queue Nov 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 17, 2025
@rosstimothy rosstimothy added this pull request to the merge queue Nov 17, 2025
Merged via the queue into branch/v17 with commit c7360ed Nov 17, 2025
38 checks passed
@rosstimothy rosstimothy deleted the bot/backport-61142-branch/v17 branch November 17, 2025 14:43
@doggydogworld doggydogworld mentioned this pull request Dec 8, 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