Skip to content

Commit

Permalink
Merge pull request #147 from nobbs/fix/increase-rate-limits
Browse files Browse the repository at this point in the history
fix(namespaces): increase QPS and burst rate limits
  • Loading branch information
danielfoehrKn authored Oct 31, 2024
2 parents a6f3400 + f6a2e9c commit 27dffa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/subcommands/ns/ns.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ func getClient(kubeconfigPath string) (client.Client, error) {
return nil, fmt.Errorf("unable to create rest config: %v", err)
}

// increase QPS and Burst to avoid rate limiting, these values are the same as kubectl uses
restConfig.QPS = 50.0
restConfig.Burst = 300

client, err := client.New(restConfig, client.Options{
Scheme: scheme,
})
Expand Down

0 comments on commit 27dffa2

Please sign in to comment.