From 95c1ab8a96ff94aa4342abab00a4b15e215c616d Mon Sep 17 00:00:00 2001 From: Sergey Kukurudzyak Date: Wed, 10 Apr 2024 13:08:22 +0300 Subject: [PATCH] PRO-48 [SUPPORT] Console nginx timeout --- src/services/k8s/config/ingress/ingress-api-config.js | 8 +++++++- src/services/k8s/config/ingress/ingress-console-config.js | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/services/k8s/config/ingress/ingress-api-config.js b/src/services/k8s/config/ingress/ingress-api-config.js index e13e423..05028c6 100644 --- a/src/services/k8s/config/ingress/ingress-api-config.js +++ b/src/services/k8s/config/ingress/ingress-api-config.js @@ -6,7 +6,13 @@ export class IngressApiConfig { 'kind': 'Ingress', 'metadata': { 'name': 'bl-api-ingress', - 'labels': { ...getIngressLabel() } + 'labels': { ...getIngressLabel() }, + 'annotations': { + 'nginx.ingress.kubernetes.io/proxy-body-size': '2000m', + 'nginx.ingress.kubernetes.io/proxy-read-timeout': '600', + 'nginx.ingress.kubernetes.io/proxy-send-timeout': '600', + 'nginx.ingress.kubernetes.io/proxy-connect-timeout': '600' + } }, 'spec': { 'defaultBackend': { diff --git a/src/services/k8s/config/ingress/ingress-console-config.js b/src/services/k8s/config/ingress/ingress-console-config.js index 0e56b24..90746b4 100644 --- a/src/services/k8s/config/ingress/ingress-console-config.js +++ b/src/services/k8s/config/ingress/ingress-console-config.js @@ -6,7 +6,13 @@ export class IngressConsoleConfig { 'kind': 'Ingress', 'metadata': { 'name': 'bl-console-ingress', - 'labels': { ...getIngressLabel() } + 'labels': { ...getIngressLabel() }, + 'annotations': { + 'nginx.ingress.kubernetes.io/proxy-body-size': '2000m', + 'nginx.ingress.kubernetes.io/proxy-read-timeout': '600', + 'nginx.ingress.kubernetes.io/proxy-send-timeout': '600', + 'nginx.ingress.kubernetes.io/proxy-connect-timeout': '600' + } }, 'spec': { 'defaultBackend': {