Skip to content

Commit 3b3a07c

Browse files
authored
Merge pull request #326 from opencost/claude/nginx-proxy-timeouts-helm-YErRj
Add configurable nginx proxy timeouts to helm chart
2 parents f5eef1c + 3d0b0df commit 3b3a07c

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

charts/opencost/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords:
99
- finops
1010
- monitoring
1111
- opencost
12-
version: 2.5.2
12+
version: 2.5.3
1313
maintainers:
1414
- name: jessegoodier
1515
- name: toscott

charts/opencost/templates/configmap-frontend.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ data:
8080
return 200 'OK';
8181
}
8282
location {{ .Values.opencost.ui.uiPath | trimSuffix "/" }}/model/ {
83-
proxy_connect_timeout 180;
84-
proxy_send_timeout 180;
85-
proxy_read_timeout 180;
83+
proxy_connect_timeout {{ .Values.opencost.ui.nginx.proxyConnectTimeout }};
84+
proxy_send_timeout {{ .Values.opencost.ui.nginx.proxySendTimeout }};
85+
proxy_read_timeout {{ .Values.opencost.ui.nginx.proxyReadTimeout }};
8686
proxy_pass http://model/;
8787
proxy_redirect off;
8888
proxy_http_version 1.1;

charts/opencost/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,15 @@ opencost:
538538
# set to true to set upstream to use <service>.<namespace>.svc.cluster.local instead of just <service>.<namespace>
539539
useDefaultFqdn: false
540540

541+
# -- Nginx proxy timeout settings (in seconds)
542+
nginx:
543+
# -- Timeout for establishing a connection with the proxied server
544+
proxyConnectTimeout: 180
545+
# -- Timeout for transmitting a request to the proxied server
546+
proxySendTimeout: 180
547+
# -- Timeout for reading a response from the proxied server
548+
proxyReadTimeout: 180
549+
541550
# Set the model fqdn to use for the upstream
542551
# modelFqdn: opencost.opencost.svc.cluster.local:9003
543552

0 commit comments

Comments
 (0)