From 3888dfa4898e0031fcd5ac1cc54a83f83315997a Mon Sep 17 00:00:00 2001 From: Ganesh Bhat <10886770+bhat-ganesh@users.noreply.github.com> Date: Fri, 13 Feb 2026 10:27:51 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9B=B5=20feat:=20Expose=20enableServiceLinks?= =?UTF-8?q?=20in=20Helm=20Deployment=20Templates=20(#11741)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🐳 feat: Expose enableServiceLinks in Helm Deployment templates (#11740) Allow users to disable Kubernetes service link injection via enableServiceLinks in both LibreChat and RAG API Helm charts. This prevents pod startup failures caused by "argument list too long" errors in namespaces with many services. * Update helm/librechat/templates/deployment.yaml * Update helm/librechat-rag-api/templates/rag-deployment.yaml * set enableServiceLinks default to true --------- Co-authored-by: Ganesh Bhat --- helm/librechat-rag-api/Chart.yaml | 2 +- helm/librechat-rag-api/templates/rag-deployment.yaml | 3 +++ helm/librechat-rag-api/values.yaml | 5 +++++ helm/librechat/Chart.yaml | 4 ++-- helm/librechat/templates/deployment.yaml | 3 +++ helm/librechat/values.yaml | 5 +++++ 6 files changed, 19 insertions(+), 3 deletions(-) diff --git a/helm/librechat-rag-api/Chart.yaml b/helm/librechat-rag-api/Chart.yaml index 38d1470e49..cc382f0501 100755 --- a/helm/librechat-rag-api/Chart.yaml +++ b/helm/librechat-rag-api/Chart.yaml @@ -14,7 +14,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.5.2 +version: 0.5.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/helm/librechat-rag-api/templates/rag-deployment.yaml b/helm/librechat-rag-api/templates/rag-deployment.yaml index 5324ee3f7e..1978260723 100755 --- a/helm/librechat-rag-api/templates/rag-deployment.yaml +++ b/helm/librechat-rag-api/templates/rag-deployment.yaml @@ -26,6 +26,9 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- if kindIs "bool" .Values.enableServiceLinks }} + enableServiceLinks: {{ .Values.enableServiceLinks }} + {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: diff --git a/helm/librechat-rag-api/values.yaml b/helm/librechat-rag-api/values.yaml index cd722bc096..3e1b61208a 100755 --- a/helm/librechat-rag-api/values.yaml +++ b/helm/librechat-rag-api/values.yaml @@ -40,6 +40,11 @@ fullnameOverride: '' podAnnotations: {} podLabels: {} +# Enable or disable injection of service environment variables into pods. +# When running in namespaces with many services, the injected variables can cause +# "argument list too long" errors. Set to false to disable. +enableServiceLinks: true + podSecurityContext: {} # fsGroup: 2000 securityContext: {} diff --git a/helm/librechat/Chart.yaml b/helm/librechat/Chart.yaml index 1e24daa280..296b20af96 100755 --- a/helm/librechat/Chart.yaml +++ b/helm/librechat/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.9.7 +version: 1.9.8 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to @@ -37,6 +37,6 @@ dependencies: condition: meilisearch.enabled repository: "https://meilisearch.github.io/meilisearch-kubernetes" - name: librechat-rag-api - version: "0.5.2" + version: "0.5.3" condition: librechat-rag-api.enabled repository: file://../librechat-rag-api diff --git a/helm/librechat/templates/deployment.yaml b/helm/librechat/templates/deployment.yaml index f8d0e58298..279749185b 100755 --- a/helm/librechat/templates/deployment.yaml +++ b/helm/librechat/templates/deployment.yaml @@ -49,6 +49,9 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "librechat.serviceAccountName" . }} + {{- if kindIs "bool" .Values.enableServiceLinks }} + enableServiceLinks: {{ .Values.enableServiceLinks }} + {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} {{- if .Values.initContainers }} diff --git a/helm/librechat/values.yaml b/helm/librechat/values.yaml index c6461ade61..f40f985954 100755 --- a/helm/librechat/values.yaml +++ b/helm/librechat/values.yaml @@ -153,6 +153,11 @@ podLabels: {} deploymentAnnotations: {} deploymentLabels: {} +# Enable or disable injection of service environment variables into pods. +# When running in namespaces with many services, the injected variables can cause +# "argument list too long" errors. Set to false to disable. +enableServiceLinks: true + podSecurityContext: fsGroup: 2000