Skip to content

Commit

Permalink
Make haproxy/nginx client timeout configurable (kubernetes-sigs#5140)
Browse files Browse the repository at this point in the history
Change-Id: I61319a06eb33d9fc868e19941924f387088b856b
  • Loading branch information
mattymo authored and k8s-ci-robot committed Sep 5, 2019
1 parent 5652381 commit 7f74906
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions roles/kubernetes/node/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ kubelet_status_update_frequency: 10s
loadbalancer_apiserver_memory_requests: 32M
loadbalancer_apiserver_cpu_requests: 25m

loadbalancer_apiserver_keepalive_timeout: 5m

# kube_api_runtime_config:
# - extensions/v1beta1/daemonsets=true
# - extensions/v1beta1/deployments=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defaults
timeout http-request 5m
timeout queue 5m
timeout connect 30s
timeout client 15m
timeout client {{ loadbalancer_apiserver_keepalive_timeout }}
timeout server 15m
timeout http-keep-alive 30s
timeout check 30s
Expand Down
2 changes: 1 addition & 1 deletion roles/kubernetes/node/templates/loadbalancer/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ http {
tcp_nopush on;
tcp_nodelay on;

keepalive_timeout 75s;
keepalive_timeout {{ loadbalancer_apiserver_keepalive_timeout }};
keepalive_requests 100;
reset_timedout_connection on;
server_tokens off;
Expand Down

0 comments on commit 7f74906

Please sign in to comment.