diff --git a/cmd/nginx/main.go b/cmd/nginx/main.go index 231e07fc4..317c6172c 100644 --- a/cmd/nginx/main.go +++ b/cmd/nginx/main.go @@ -47,15 +47,6 @@ import ( "k8s.io/ingress-nginx/version" ) -const ( - // High enough QPS to fit all expected use cases. QPS=0 is not set here, because - // client code is overriding it. - defaultQPS = 1e6 - // High enough Burst to fit all expected use cases. Burst=0 is not set here, because - // client code is overriding it. - defaultBurst = 1e6 -) - func main() { klog.InitFlags(nil) @@ -189,10 +180,6 @@ func createApiserverClient(apiserverHost, kubeConfig string) (*kubernetes.Client return nil, err } - cfg.QPS = defaultQPS - cfg.Burst = defaultBurst - cfg.ContentType = "application/vnd.kubernetes.protobuf" - klog.Infof("Creating API client for %s", cfg.Host) client, err := kubernetes.NewForConfig(cfg)