mirror of https://github.com/k3s-io/k3s
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.pull/6/head
parent
407f9b9e42
commit
80287e3430
|
@ -30,7 +30,7 @@ import (
|
||||||
|
|
||||||
func New() HTTPProber {
|
func New() HTTPProber {
|
||||||
tlsConfig := &tls.Config{InsecureSkipVerify: true}
|
tlsConfig := &tls.Config{InsecureSkipVerify: true}
|
||||||
transport := &http.Transport{TLSClientConfig: tlsConfig}
|
transport := &http.Transport{TLSClientConfig: tlsConfig, DisableKeepAlives: true}
|
||||||
return httpProber{transport}
|
return httpProber{transport}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue