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.
This commit is contained in:
Yuriy Taraday 2016-11-28 20:27:47 +03:00
parent 5b382668f5
commit 658543c949

View file

@ -18,7 +18,7 @@ stream {
server { server {
listen {{ kube_apiserver_port }}; listen {{ kube_apiserver_port }};
proxy_pass kube_apiserver; proxy_pass kube_apiserver;
proxy_timeout 3s; proxy_timeout 10m;
proxy_connect_timeout 1s; proxy_connect_timeout 1s;
} }