From 658543c94930c823e1964b2081dce37acd560f52 Mon Sep 17 00:00:00 2001 From: Yuriy Taraday Date: Mon, 28 Nov 2016 20:27:47 +0300 Subject: [PATCH] Set proxy_timeout to 10m in nginx.conf Fixes #655. This is a teporary solution for long-polling idle connections to apiserver. It will make Nginx not cut them for the duration of expected timeout. It will also make Nginx extremely slow in realizing that there is some issue with connectivity to apiserver as well, so it might not be perfect permanent solution. --- roles/kubernetes/node/templates/nginx.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/node/templates/nginx.conf.j2 b/roles/kubernetes/node/templates/nginx.conf.j2 index edcee08a9..8e2d6ebc6 100644 --- a/roles/kubernetes/node/templates/nginx.conf.j2 +++ b/roles/kubernetes/node/templates/nginx.conf.j2 @@ -18,7 +18,7 @@ stream { server { listen {{ kube_apiserver_port }}; proxy_pass kube_apiserver; - proxy_timeout 3s; + proxy_timeout 10m; proxy_connect_timeout 1s; }