Merge pull request #75190 from deads2k/kubelet-timeout

set backup value to ensure connections against kubelets eventually close
This commit is contained in:
Kubernetes Prow Robot 2019-10-16 22:24:38 -07:00 committed by GitHub
commit c63ec82490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,6 +147,8 @@ func ListenAndServeKubeletServer(
s := &http.Server{
Addr: net.JoinHostPort(address.String(), strconv.FormatUint(uint64(port), 10)),
Handler: &handler,
ReadTimeout: 4 * 60 * time.Minute,
WriteTimeout: 4 * 60 * time.Minute,
MaxHeaderBytes: 1 << 20,
}
if tlsOptions != nil {