mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Add proxy_read_timeout flag to kubeapi_load_balancer charm.
This commit is contained in:
parent
dc44a3174c
commit
9aa4fc0d3b
@ -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
Block a user