mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 21:12:07 +00:00
Disable keep-alive for liveness/readiness probes
Keep-alive is often not useful for probing because kubelet checks many pods with different addresses and ports. Disable keep-alive so prober does not have to handle closed connections.
This commit is contained in:
parent
407f9b9e42
commit
80287e3430
@ -30,7 +30,7 @@ import (
|
||||
|
||||
func New() HTTPProber {
|
||||
tlsConfig := &tls.Config{InsecureSkipVerify: true}
|
||||
transport := &http.Transport{TLSClientConfig: tlsConfig}
|
||||
transport := &http.Transport{TLSClientConfig: tlsConfig, DisableKeepAlives: true}
|
||||
return httpProber{transport}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user