From 4604a4904aad3d54395c39d54fd3b5c2ab5998d9 Mon Sep 17 00:00:00 2001 From: Endial Fang Date: Tue, 15 Apr 2025 09:21:04 +0800 Subject: [PATCH] fix: The error is caused by too many environment variables(E2BIG). --- templates/web-deployment.yaml | 1 + values.yaml | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/web-deployment.yaml b/templates/web-deployment.yaml index 4b8dca0..d6daf32 100644 --- a/templates/web-deployment.yaml +++ b/templates/web-deployment.yaml @@ -98,6 +98,7 @@ spec: protocol: TCP resources: {{- toYaml .Values.web.resources | nindent 12 }} + enableServiceLinks: {{ .Values.web.enableServiceLinks }} {{- if and (.Values.nodeSelector) (not .Values.web.nodeSelector) }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} diff --git a/values.yaml b/values.yaml index 5ecbca7..2af7be3 100644 --- a/values.yaml +++ b/values.yaml @@ -343,7 +343,7 @@ proxy: ## set, choosing the default provisioner. ## ReadWriteMany access mode required for nginx ## - storageClass: + storageClass: "" accessModes: ReadWriteMany size: 1Gi subPath: "" @@ -443,6 +443,9 @@ web: ## @param web.serviceAccount.annotations Additional custom annotations for the ServiceAccount ## annotations: {} + ## @param web.enableServiceLinks Disable this feature if additional environment variables would lead to `E2BIG` errors in case frontend were managed by `pm2` + ## + enableServiceLinks: false sandbox: enabled: true @@ -565,7 +568,7 @@ ssrfProxy: ## set, choosing the default provisioner. ## ReadWriteMany access mode required for squid ## - storageClass: + storageClass: "" accessModes: ReadWriteMany size: 1Gi subPath: "" @@ -640,7 +643,7 @@ pluginDaemon: ## set, choosing the default provisioner. ## ReadWriteMany access mode required for `pluginDaemon` ## - storageClass: + storageClass: "" accessModes: ReadWriteMany size: 5Gi subPath: ""