Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions internal/kube/kube.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ func NewK8sClientSet(kubeconfigPath string) (*K8SConnection, error) {
}
}

// set the QPS and burst for the config to control the rate of requests to the API server
// defaults are 5 QPS and 10 burst which is too low for large clusters
config.QPS = 50
config.Burst = 100

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