Skip to content

Commit

Permalink
Merge pull request #55 from grafana/fix-throttling-issues
Browse files Browse the repository at this point in the history
Prevent client side throttling
  • Loading branch information
pablochacin authored Nov 23, 2022
2 parents f127844 + 98d1e77 commit a6170da
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 a6170da

Please sign in to comment.