Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

💎 feat: Add Redis as Optional Sub-chart Dependency in Helm Chart (#11664)

MyGitHubbf9aae057185
diff --git a/helm/librechat/Chart.yaml b/helm/librechat/Chart.yaml
index 296b20af96..52203aa8f4 100755
--- a/helm/librechat/Chart.yaml
+++ b/helm/librechat/Chart.yaml
@@ -36,6 +36,10 @@ dependencies:
version: "0.11.0"
condition: meilisearch.enabled
repository: "https://meilisearch.github.io/meilisearch-kubernetes"
+ - name: redis
+ version: "24.1.3"
+ condition: redis.enabled
+ repository: "https://charts.bitnami.com/bitnami"
- name: librechat-rag-api
version: "0.5.3"
condition: librechat-rag-api.enabled
diff --git a/helm/librechat/templates/configmap-env.yaml b/helm/librechat/templates/configmap-env.yaml
index 0817ceeaff..ed5ac822da 100755
--- a/helm/librechat/templates/configmap-env.yaml
+++ b/helm/librechat/templates/configmap-env.yaml
@@ -12,6 +12,12 @@ data:
{{- if and (not (dig "configEnv" "MONGO_URI" "" .Values.librechat)) .Values.mongodb.enabled }}
MONGO_URI: mongodb://{{ include "mongodb.service.nameOverride" .Subcharts.mongodb }}.{{ .Release.Namespace | lower }}.svc.cluster.local:27017/LibreChat
{{- end }}
+ {{- if and (not (dig "configEnv" "USE_REDIS" "" .Values.librechat)) .Values.redis.enabled }}
+ USE_REDIS: "true"
+ {{- end }}
+ {{- if and (not (dig "configEnv" "REDIS_URI" "" .Values.librechat)) .Values.redis.enabled }}
+ REDIS_URI: redis://{{ include "common.names.fullname" .Subcharts.redis }}-master.{{ .Release.Namespace | lower }}.svc.cluster.local:6379
+ {{- end }}
{{- if .Values.librechat.configEnv }}
{{- toYaml .Values.librechat.configEnv | nindent 2 }}
{{- end }}
\ No newline at end of file
diff --git a/helm/librechat/values.yaml b/helm/librechat/values.yaml
index f40f985954..a4c877d64d 100755
--- a/helm/librechat/values.yaml
+++ b/helm/librechat/values.yaml
@@ -304,8 +304,15 @@ meilisearch:
persistence:
enabled: true
storageClass: ""
- image:
+ image:
tag: "v1.7.3"
auth:
# Use an existing Kubernetes secret for the MEILI_MASTER_KEY
existingMasterKeySecret: "librechat-credentials-env"
+
+# Redis Parameters
+redis:
+ enabled: false
+ architecture: standalone
+ auth:
+ enabled: false