Skip to content

Commit

Permalink
fix(namespaces): increase QPS and burst rate limits
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexej Disterhoft authored and nobbs committed Oct 30, 2024
1 parent b0f508e commit f6a2e9c
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 @@ -315,6 +315,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 f6a2e9c

Please sign in to comment.