From 922fb7a2f4ad3e2e4536e80ea565fcb3474731dd Mon Sep 17 00:00:00 2001 From: Xabier Larrakoetxea Date: Mon, 11 Oct 2021 12:32:44 +0200 Subject: [PATCH] Set usable and safe client-side rate limit on Kubernetes client Signed-off-by: Xabier Larrakoetxea --- cmd/app/run.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/app/run.go b/cmd/app/run.go index 9040869fb..8b365a12d 100644 --- a/cmd/app/run.go +++ b/cmd/app/run.go @@ -57,6 +57,10 @@ func buildRunCommand(stopCh <-chan struct{}, opts *options.Options) *cobra.Comma } } + // Set a known working client-side rate limit. + restConfig.QPS = 100 + restConfig.Burst = 100 + // Initialise token reviewer if enabled var tokenReviewer *tokenreview.TokenReview if opts.App.TokenPassthrough.Enabled {