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:
Yu-Ju Hong 2015-10-15 13:50:16 -07:00
parent 407f9b9e42
commit 80287e3430

View File

@ -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}
}