Commit 80287e34 authored by Yu-Ju Hong's avatar Yu-Ju Hong

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.
parent 407f9b9e
......@@ -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}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment