mirror of https://github.com/k3s-io/k3s
Merge pull request #57926 from wwwtyro/rye/bump-load-balancer-timeout
Automatic merge from submit-queue (batch tested with PRs 57926, 57930). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add proxy_read_timeout flag to kubeapi_load_balancer charm. **What this PR does / why we need it**: Add proxy_read_timeout flag to kubeapi_load_balancer charm. **Release note**: ```release-note Add proxy_read_timeout flag to kubeapi_load_balancer charm. ```pull/6/head
commit
b22f829643
|
@ -9,3 +9,7 @@ options:
|
||||||
description: |
|
description: |
|
||||||
Space-separated list of extra SAN entries to add to the x509 certificate
|
Space-separated list of extra SAN entries to add to the x509 certificate
|
||||||
created for the load balancers.
|
created for the load balancers.
|
||||||
|
proxy_read_timeout:
|
||||||
|
type: int
|
||||||
|
default: 90
|
||||||
|
description: Timeout in seconds for reading a response from proxy server.
|
||||||
|
|
|
@ -151,6 +151,7 @@ def install_load_balancer(apiserver, tls):
|
||||||
port=port,
|
port=port,
|
||||||
server_certificate=server_cert_path,
|
server_certificate=server_cert_path,
|
||||||
server_key=server_key_path,
|
server_key=server_key_path,
|
||||||
|
proxy_read_timeout=hookenv.config('proxy_read_timeout')
|
||||||
)
|
)
|
||||||
|
|
||||||
maybe_write_apilb_logrotate_config()
|
maybe_write_apilb_logrotate_config()
|
||||||
|
|
|
@ -36,6 +36,6 @@ server {
|
||||||
add_header X-Stream-Protocol-Version $upstream_http_x_stream_protocol_version;
|
add_header X-Stream-Protocol-Version $upstream_http_x_stream_protocol_version;
|
||||||
|
|
||||||
proxy_pass https://target_service;
|
proxy_pass https://target_service;
|
||||||
proxy_read_timeout 90;
|
proxy_read_timeout {{ proxy_read_timeout }};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue