From 2153db2f5fcb07c46c594912466ab8398629ed24 Mon Sep 17 00:00:00 2001 From: Jerum Hubbert Date: Tue, 23 Sep 2025 09:48:07 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=8A=20feat:=20Helm=20Chart=20Port=20Fl?= =?UTF-8?q?exibility=20and=20MongoDB=20Update=20(#9750)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update MongoDB chart dependency from v16.3.0 to v16.5.45 - Add explicit containerPort configuration with fallback to service.port - Standardize port references in health probes to use explicit port numbers - Add targetPort and containerPort fields to service configuration - Include service type options as inline comment for better clarity These changes improve the Helm chart's port management flexibility and bring the MongoDB dependency up to date with the latest stable version. Co-authored-by: Jerum Hubbert --- helm/librechat/Chart.yaml | 2 +- helm/librechat/templates/deployment.yaml | 2 +- helm/librechat/values.yaml | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/helm/librechat/Chart.yaml b/helm/librechat/Chart.yaml index c158a8cb77..a7a26d1465 100755 --- a/helm/librechat/Chart.yaml +++ b/helm/librechat/Chart.yaml @@ -29,7 +29,7 @@ home: https://www.librechat.ai dependencies: - name: mongodb - version: "16.3.0" + version: "16.5.45" condition: mongodb.enabled repository: "https://charts.bitnami.com/bitnami" - name: meilisearch diff --git a/helm/librechat/templates/deployment.yaml b/helm/librechat/templates/deployment.yaml index 492edafdb9..ad56c60d28 100755 --- a/helm/librechat/templates/deployment.yaml +++ b/helm/librechat/templates/deployment.yaml @@ -41,7 +41,7 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http - containerPort: {{ .Values.service.port }} + containerPort: {{ .Values.service.containerPort | default .Values.service.port }} protocol: TCP lifecycle: {{- toYaml .Values.lifecycle | nindent 12 }} diff --git a/helm/librechat/values.yaml b/helm/librechat/values.yaml index f290766d1b..fdc92e5c6a 100755 --- a/helm/librechat/values.yaml +++ b/helm/librechat/values.yaml @@ -150,8 +150,10 @@ securityContext: runAsUser: 1000 service: - type: ClusterIP + type: ClusterIP # LoadBalancer, NodePort, ClusterIP port: 3080 + targetPort: 3080 + containerPort: 3080 annotations: {} ingress: @@ -193,11 +195,11 @@ autoscaling: livenessProbe: httpGet: path: /health - port: http + port: 3080 readinessProbe: httpGet: path: /health - port: http + port: 3080 # Additional volumes on the output Deployment definition. volumes: []