Skip to content

Commit

Permalink
Merge pull request #83143 from liggitt/automated-cherry-pick-of-#8046…
Browse files Browse the repository at this point in the history
…5-upstream-release-1.16

Automated cherry pick of #80465: remove apiserver loopback client QPS limit
  • Loading branch information
k8s-ci-robot committed Sep 27, 2019
2 parents 85b8691 + 05d9022 commit a3b5227
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions staging/src/k8s.io/apiserver/pkg/server/config_selfclient.go
Expand Up @@ -38,12 +38,9 @@ func (s *SecureServingInfo) NewClientConfig(caCert []byte) (*restclient.Config,
}

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

0 comments on commit a3b5227

Please sign in to comment.