From 80287e343027f74ebd83ad8b5f468435281cbd83 Mon Sep 17 00:00:00 2001 From: Yu-Ju Hong Date: Thu, 15 Oct 2015 13:50:16 -0700 Subject: [PATCH] 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. --- pkg/probe/http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/probe/http/http.go b/pkg/probe/http/http.go index 6d35e285d3e..3b1ea9cfe39 100644 --- a/pkg/probe/http/http.go +++ b/pkg/probe/http/http.go @@ -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} }