Skip to content

Commit 9df1ef3

Browse files
increase kubernetes client throttling limits (#628)
1 parent 33817aa commit 9df1ef3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/kube/kube.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ func NewK8sClientSet(kubeconfigPath string) (*K8SConnection, error) {
8484
}
8585
}
8686

87+
// set the QPS and burst for the config to control the rate of requests to the API server
88+
// defaults are 5 QPS and 10 burst which is too low for large clusters
89+
config.QPS = 50
90+
config.Burst = 100
91+
8792
clientset, err := kubernetes.NewForConfig(config)
8893
if err != nil {
8994
return nil, err

0 commit comments

Comments
 (0)