Add proxy_read_timeout flag to kubeapi_load_balancer charm.

This commit is contained in:
Rye Terrell 2018-01-05 21:20:31 -06:00
parent dc44a3174c
commit 9aa4fc0d3b
3 changed files with 6 additions and 1 deletions

View File

@ -9,3 +9,7 @@ options:
description: |
Space-separated list of extra SAN entries to add to the x509 certificate
created for the load balancers.
proxy_read_timeout:
type: int
default: 90
description: Timeout in seconds for reading a response from proxy server.

View File

@ -151,6 +151,7 @@ def install_load_balancer(apiserver, tls):
port=port,
server_certificate=server_cert_path,
server_key=server_key_path,
proxy_read_timeout=hookenv.config('proxy_read_timeout')
)
maybe_write_apilb_logrotate_config()

View File

@ -36,6 +36,6 @@ server {
add_header X-Stream-Protocol-Version $upstream_http_x_stream_protocol_version;
proxy_pass https://target_service;
proxy_read_timeout 90;
proxy_read_timeout {{ proxy_read_timeout }};
}
}