From cba144b8dcb46d7d75d4c062b18ea8b6b096c7cd Mon Sep 17 00:00:00 2001
From: Povilas Versockas
Date: Tue, 15 Oct 2024 10:16:54 +0300
Subject: [PATCH] fix: [TKC-2561] add proxy * timeout options for REST ingress
---
charts/testkube-cloud-api/templates/ingress-rest.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/charts/testkube-cloud-api/templates/ingress-rest.yaml b/charts/testkube-cloud-api/templates/ingress-rest.yaml
index 46cb7aea6..87a1d79c2 100644
--- a/charts/testkube-cloud-api/templates/ingress-rest.yaml
+++ b/charts/testkube-cloud-api/templates/ingress-rest.yaml
@@ -25,6 +25,11 @@ metadata:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/preserve-trailing-slash: "true"
nginx.ingress.kubernetes.io/backend-protocol: {{ if .Values.api.tls.serveHTTPS }}HTTPS{{ else }}HTTP{{ end }}
+ nginx.ingress.kubernetes.io/client-header-timeout: "10800"
+ nginx.ingress.kubernetes.io/client-body-timeout: "10800"
+ nginx.ingress.kubernetes.io/proxy-send-timeout: "10800"
+ nginx.ingress.kubernetes.io/proxy-read-timeout: "10800"
+ nginx.ingress.kubernetes.io/proxy-connect-timeout: "10800"
{{- if and (not .Values.api.tls.serveHTTPS) (eq .Values.global.certificateProvider "cert-manager") }}
cert-manager.io/cluster-issuer: {{ required ".Values.global.certManager.issuerRef must be provided if provider is cert-manager" .Values.global.certManager.issuerRef }}
{{- end }}