Better mechanism to decide Retry-After header #117734
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What would you like to be added?
Make the value for Retry-After header of APF-rejected responses dynamic or user-adjustable instead of being constant 1
Why is this needed?
When
kube-apiserver
APF rejects a request, it sets the HTTP response header withRetry-After
of value 1 (ie. retry in 1 second). There was a TODO in https://github.com/kubernetes/apiserver/blob/master/pkg/server/filters/maxinflight.go#L38 to improve this since many years ago.Retry-After being 1 seems less reasonable to many cases when the kube-apiserver is heavily overloaded.
As suggested in the TODO:
The text was updated successfully, but these errors were encountered: