Skip to content

Commit 45f7f70

Browse files
authored
Merge pull request kubernetes#80465 from answer1991/remove-apiserver-loopback-client-qps-limit
remove apiserver loopback client QPS limit
2 parents ff8716f + c37547c commit 45f7f70

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

staging/src/k8s.io/apiserver/pkg/server/config_selfclient.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,9 @@ func (s *SecureServingInfo) NewClientConfig(caCert []byte) (*restclient.Config,
3838
}
3939

4040
return &restclient.Config{
41-
// Increase QPS limits. The client is currently passed to all admission plugins,
42-
// and those can be throttled in case of higher load on apiserver - see #22340 and #22422
43-
// for more details. Once #22422 is fixed, we may want to remove it.
44-
QPS: 50,
45-
Burst: 100,
46-
Host: "https://" + net.JoinHostPort(host, port),
41+
// Do not limit loopback client QPS.
42+
QPS: -1,
43+
Host: "https://" + net.JoinHostPort(host, port),
4744
// override the ServerName to select our loopback certificate via SNI. This name is also
4845
// used by the client to compare the returns server certificate against.
4946
TLSClientConfig: restclient.TLSClientConfig{

0 commit comments

Comments
 (0)