Allow Ability to Configure Upstream Keepalive

Allows Upstream Keepalive values like keepalive_timeout and
keepalive_requests to be configured via ConfigMap.

Fixes #3099
This commit is contained in:
Fernando Diaz 2018-10-10 18:56:07 -05:00
parent 3c1a5c5fc2
commit 12955a4a1b
3 changed files with 41 additions and 3 deletions

View file

@ -416,6 +416,9 @@ http {
{{ if (gt $cfg.UpstreamKeepaliveConnections 0) }}
keepalive {{ $cfg.UpstreamKeepaliveConnections }};
keepalive_timeout {{ $cfg.UpstreamKeepaliveTimeout }}s;
keepalive_requests {{ $cfg.UpstreamKeepaliveRequests }};
{{ end }}
}