From 79c9fe28a9ac12dd57b2646e56f433c5e6900812 Mon Sep 17 00:00:00 2001 From: Manu <21658174+epignot@users.noreply.github.com> Date: Wed, 27 Mar 2024 09:39:27 +0100 Subject: [PATCH] increase nginx body size limit (#192) when uploading files from JupyterLab, the chunks sometimes are bigger than the expected 1MB. This increase the limit to 2MB, it should be enough. Same change will be done in CP ingress Co-authored-by: Emmanuel Pignot <emmanuel.pignot@netapp.com> --- charts/bigdata-proxy/Chart.yaml | 2 +- charts/bigdata-proxy/templates/ingress.yaml | 2 ++ charts/bigdata-proxy/values.yaml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/bigdata-proxy/Chart.yaml b/charts/bigdata-proxy/Chart.yaml index 2c7428af..8c89758f 100644 --- a/charts/bigdata-proxy/Chart.yaml +++ b/charts/bigdata-proxy/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: bigdata-proxy description: A Helm chart for the Spot Big Data Proxy type: application -version: 0.4.5 +version: 0.4.6 appVersion: 0.5.3 home: https://github.com/spotinst/charts icon: https://docs.spot.io/_media/images/spot_mark.png diff --git a/charts/bigdata-proxy/templates/ingress.yaml b/charts/bigdata-proxy/templates/ingress.yaml index bdb39e29..715dcb25 100644 --- a/charts/bigdata-proxy/templates/ingress.yaml +++ b/charts/bigdata-proxy/templates/ingress.yaml @@ -13,6 +13,8 @@ metadata: nginx.ingress.kubernetes.io/auth-tls-secret: {{ printf "%s/%s" .Values.ingress.secretNamespace .Values.ingress.secretName }} # Override proxy timeout to give time for possible cluster scale up nginx.ingress.kubernetes.io/proxy-read-timeout: {{ .Values.ingress.readTimeout | quote }} + # Override body size to allow file uploads from JupyterLab(workspace) + nginx.ingress.kubernetes.io/proxy-body-size: {{ .Values.ingress.bodySize }} spec: ingressClassName: {{ .Values.ingress.ingressClassName }} rules: diff --git a/charts/bigdata-proxy/values.yaml b/charts/bigdata-proxy/values.yaml index cc5288f8..6c452447 100644 --- a/charts/bigdata-proxy/values.yaml +++ b/charts/bigdata-proxy/values.yaml @@ -28,6 +28,7 @@ ingress: host: "" # Overridden at deploy time secretNamespace: "" # Overridden at deploy time secretName: "" # Overridden at deploy time + bodySize: "2M" nameOverride: "" fullnameOverride: ""