Increase client-side throttling limits

This commit is contained in:
Ciprian Hacman 2023-07-05 07:43:16 +03:00
parent e363128184
commit ba442011d7
1 changed files with 2 additions and 0 deletions

View File

@ -152,6 +152,8 @@ func (f *Factory) restConfig() (*rest.Config, error) {
return nil, fmt.Errorf("cannot load kubecfg settings: %w", err) return nil, fmt.Errorf("cannot load kubecfg settings: %w", err)
} }
restConfig.UserAgent = "kops" restConfig.UserAgent = "kops"
restConfig.Burst = 50
restConfig.QPS = 20
f.cachedRESTConfig = restConfig f.cachedRESTConfig = restConfig
} }
return f.cachedRESTConfig, nil return f.cachedRESTConfig, nil