Adding support for imagePullSecrets, envFrom, and deployment strategy in Helm chart

This commit is contained in:
Tomek Cyran
2025-10-06 16:25:50 +02:00
parent 6190fa8985
commit 119d2fa171
3 changed files with 43 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ apiVersion: v2
name: lightrag name: lightrag
description: A Helm chart for LightRAG, an efficient and lightweight RAG system description: A Helm chart for LightRAG, an efficient and lightweight RAG system
type: application type: application
version: 0.1.0 version: 0.1.1
appVersion: "1.0.0" appVersion: "1.0.0"
maintainers: maintainers:
- name: LightRAG Team - name: LightRAG Team

View File

@@ -43,6 +43,19 @@ spec:
- name: env-file - name: env-file
mountPath: /app/.env mountPath: /app/.env
subPath: .env subPath: .env
envFrom:
{{- range .Values.envFrom.secrets }}
- secretRef:
name: {{ .name }}
{{- end }}
{{- range .Values.envFrom.configmaps }}
- configMapRef:
name: {{ .name }}
{{- end }}
{{- with .Values.image.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes: volumes:
- name: env-file - name: env-file
secret: secret:
@@ -60,3 +73,6 @@ spec:
- name: inputs - name: inputs
emptyDir: {} emptyDir: {}
{{- end }} {{- end }}
strategy:
{{- toYaml .Values.updateStrategy | nindent 4 }}

View File

@@ -3,6 +3,23 @@ replicaCount: 1
image: image:
repository: ghcr.io/hkuds/lightrag repository: ghcr.io/hkuds/lightrag
tag: latest tag: latest
# Optionally specify imagePullSecrets if your image is in a private registry
# example:
# imagePullSecrets:
# - name: my-registry-secret
imagePullSecrets: []
# Specify a deployment strategy
# example:
# updateStrategy:
# type: RollingUpdate
# rollingUpdate:
# maxUnavailable: 25%
# maxSurge: 25%
# Default for now should be Recreate as any RollingUpdate will cause issues with
# multiple instances trying to access the same persistent storage if not using RWX volumes.
updateStrategy:
type: Recreate
service: service:
type: ClusterIP type: ClusterIP
@@ -23,6 +40,13 @@ persistence:
inputs: inputs:
size: 5Gi size: 5Gi
# Allow specifying additional environment variables from ConfigMaps or Secrets created outside of this chart
envFrom:
configmaps: []
# - name: my-shiny-configmap-1
secrets: []
# - name: my-shiny-secret-1
env: env:
HOST: 0.0.0.0 HOST: 0.0.0.0
PORT: 9621 PORT: 9621
@@ -38,8 +62,8 @@ env:
EMBEDDING_BINDING_API_KEY: EMBEDDING_BINDING_API_KEY:
LIGHTRAG_KV_STORAGE: PGKVStorage LIGHTRAG_KV_STORAGE: PGKVStorage
LIGHTRAG_VECTOR_STORAGE: PGVectorStorage LIGHTRAG_VECTOR_STORAGE: PGVectorStorage
# LIGHTRAG_KV_STORAGE: RedisKVStorage # LIGHTRAG_KV_STORAGE: RedisKVStorage
# LIGHTRAG_VECTOR_STORAGE: QdrantVectorDBStorage # LIGHTRAG_VECTOR_STORAGE: QdrantVectorDBStorage
LIGHTRAG_GRAPH_STORAGE: Neo4JStorage LIGHTRAG_GRAPH_STORAGE: Neo4JStorage
LIGHTRAG_DOC_STATUS_STORAGE: PGDocStatusStorage LIGHTRAG_DOC_STATUS_STORAGE: PGDocStatusStorage
# Replace with your POSTGRES credentials # Replace with your POSTGRES credentials