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

Add Bitnami Redis as an optional Helm sub-chart dependency, following the
same pattern used by MongoDB and Meilisearch. When enabled, USE_REDIS and
REDIS_URI are auto-wired into the LibreChat ConfigMap.

- Add redis dependency (Bitnami 24.1.3, Redis 8.4) to Chart.yaml
- Add redis config section to values.yaml (disabled by default)
- Auto-wire USE_REDIS and REDIS_URI in configmap-env.yaml with dig
  checks to allow user overrides via configEnv
- Bump chart version to 1.10.0

Co-authored-by: Feng Lu <feng.lu@kindredgroup.com>
Co-authored-by: Danny Avila <danny@librechat.ai>
This commit is contained in:
MyGitHub 2026-02-14 19:54:58 +01:00 committed by Danny Avila
parent 2513e0a423
commit bf9aae0571
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
3 changed files with 18 additions and 1 deletions

View file

@ -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

View file

@ -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 }}

View file

@ -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