From 507ccc353ed2190d4bb0c0e0e7e5b36522c2691b Mon Sep 17 00:00:00 2001 From: Antonio Ojea Date: Sat, 27 Jul 2019 23:27:10 +0200 Subject: [PATCH] Tune haproxy configuration --- pkg/internal/cluster/loadbalancer/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/internal/cluster/loadbalancer/config.go b/pkg/internal/cluster/loadbalancer/config.go index 0f81822179..1be4a727eb 100644 --- a/pkg/internal/cluster/loadbalancer/config.go +++ b/pkg/internal/cluster/loadbalancer/config.go @@ -33,6 +33,8 @@ type ConfigData struct { // DefaultConfigTemplate is the loadbalancer config template const DefaultConfigTemplate = `# generated by kind global + stats socket /var/run/haproxy.sock mode 600 level admin + stats timeout 2m log /dev/log local0 log /dev/log local1 notice daemon @@ -40,6 +42,7 @@ global defaults log global mode tcp + option tcpka option dontlognull # TODO: tune these timeout connect 5000