Skip to content

Commit

Permalink
Increase client-side rate limit in Kubernetes
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chacin <pablochacin@gmail.com>
  • Loading branch information
pablochacin committed Nov 22, 2022
1 parent 523e632 commit 97ff446
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ func NewFromConfig(c Config) (Kubernetes, error) {
return nil, err
}

// As per the discussion in [1] client side rate limiting is no longer required.
// Setting a large limit
// [1] https://github.com/kubernetes/kubernetes/issues/111880
config.QPS = 100
config.Burst = 150

client, err := kubernetes.NewForConfig(config)
if err != nil {
return nil, err
Expand Down

0 comments on commit 97ff446

Please sign in to comment.