From 4d9342c8e1b7f0b54bd005f8cf8b95a6c5c1c9eb Mon Sep 17 00:00:00 2001 From: Taddeus Date: Mon, 3 Nov 2025 14:23:16 +0200 Subject: [PATCH] Cleans up documentation and deployment scripts for consistency Removes trailing whitespace and fixes minor formatting issues in Kubernetes deployment docs, storage report, and Helm chart files. Standardizes indentation and spacing in Docker Compose and deployment shell scripts to improve readability and maintainability. These edits improve documentation clarity and make deployment scripts more robust without altering functionality. Relates to MLO-469 --- blueprints/KUBERNETES_DEPLOYMENT.md | 24 ++++++++-------- blueprints/REPORT.md | 18 ++++++------ deploy-stacks.sh | 28 +++++++++---------- docker-compose.all-in-one.yml | 12 ++++---- docker-compose.balanced.yml | 12 ++++---- docker-compose.development.yml | 6 ++-- docker-compose.high-performance.yml | 12 ++++---- docker-compose.minimal.yml | 2 +- init-db/01-init.sql | 2 +- k8s-deploy/lightrag-minimal/Chart.yaml | 2 +- k8s-deploy/lightrag-minimal/README.md | 24 ++++++++-------- .../lightrag-minimal/templates/NOTES.txt | 10 +++---- .../templates/deployment.yaml | 18 ++++++------ .../lightrag-minimal/templates/hpa.yaml | 2 +- .../lightrag-minimal/templates/ingress.yaml | 2 +- .../lightrag-minimal/templates/pvc.yaml | 2 +- .../lightrag-minimal/templates/service.yaml | 2 +- .../templates/serviceaccount.yaml | 2 +- k8s-deploy/lightrag/templates/ingress.yaml | 2 +- k8s-deploy/lightrag/values.yaml | 2 +- 20 files changed, 92 insertions(+), 92 deletions(-) diff --git a/blueprints/KUBERNETES_DEPLOYMENT.md b/blueprints/KUBERNETES_DEPLOYMENT.md index 9fbc8190..85aeaf2a 100644 --- a/blueprints/KUBERNETES_DEPLOYMENT.md +++ b/blueprints/KUBERNETES_DEPLOYMENT.md @@ -26,17 +26,17 @@ graph TD E[Secrets & API Keys] end end - + F[Helm Chart Management] G[External Access] H[OpenAI API] - + F --> A F --> B A --> B A --> H C --> G - + style A fill:#e1f5fe style B fill:#f3e5f5 style F fill:#e8f5e8 @@ -102,7 +102,7 @@ kubectl wait --namespace lightrag \ -l app.kubernetes.io/name=postgresql \ --timeout=120s -# Wait for LightRAG to be ready +# Wait for LightRAG to be ready kubectl wait --namespace lightrag \ --for=condition=ready pod \ -l app.kubernetes.io/name=lightrag-minimal \ @@ -130,7 +130,7 @@ kubectl port-forward --namespace lightrag svc/lightrag-minimal 9621:9621 & # - Secure passwords # - Resource limits based on your needs -# Substitute environment variables +# Substitute environment variables envsubst < values-prod.yaml > values-prod-final.yaml # Deploy with production configuration @@ -187,7 +187,7 @@ ingress: enabled: false ``` -#### Production (values-prod.yaml) +#### Production (values-prod.yaml) ```yaml # Production resources resources: @@ -262,7 +262,7 @@ curl http://localhost:9621/documents # LightRAG logs kubectl logs --namespace lightrag -l app.kubernetes.io/name=lightrag-minimal -f -# PostgreSQL logs +# PostgreSQL logs kubectl logs --namespace lightrag -l app.kubernetes.io/name=postgresql -f ``` @@ -302,7 +302,7 @@ python load_docs.py /path/to/docs --no-test - Example: `[DC] getting-started/installation.md` **URLs Mode:** -- Uses live website URLs in query response references +- Uses live website URLs in query response references - Provides clickable links in responses - Better user experience with direct access to source material - Example: `[DC] https://docs.apolo.us/index/getting-started/installation` @@ -321,7 +321,7 @@ docs/guides/deployment.md → https://docs.example.com/guides/deployme **Setup Instructions:** 1. **Analyze your docs site URLs** - Note the exact path structure -2. **Create matching directories** - Mirror the URL structure locally +2. **Create matching directories** - Mirror the URL structure locally 3. **Place files correctly** - Remove `.md` from URL paths to match filenames 4. **Test URLs** - Verify a few links work before loading documents @@ -329,7 +329,7 @@ This ensures generated URLs in query responses are valid and clickable. ### Loader Features -- **Simple dependencies**: Only requires `httpx` +- **Simple dependencies**: Only requires `httpx` - **Automatic discovery**: Finds all `.md` files recursively - **Basic metadata**: Adds title, path, and source information - **Progress tracking**: Shows loading progress with success/failure counts @@ -455,7 +455,7 @@ kubectl port-forward --namespace lightrag svc/lightrag-minimal 9621:9621 ## 🎯 Advantages of This Approach ✅ **Pure Helm** - No manual kubectl apply commands -✅ **Integrated PostgreSQL** - Bitnami chart handles all PostgreSQL complexity +✅ **Integrated PostgreSQL** - Bitnami chart handles all PostgreSQL complexity ✅ **pgvector Support** - Automatic extension creation via initdb scripts ✅ **Environment Flexibility** - Separate values files for dev/prod ✅ **Production Ready** - Built-in scaling, security, monitoring hooks @@ -503,4 +503,4 @@ This deployment process has been thoroughly validated through complete teardown 📊 Documentation: Ready for loading with included loader script ``` -This approach provides a production-ready, maintainable solution for deploying LightRAG to any Kubernetes cluster with confidence in its reliability and repeatability. \ No newline at end of file +This approach provides a production-ready, maintainable solution for deploying LightRAG to any Kubernetes cluster with confidence in its reliability and repeatability. diff --git a/blueprints/REPORT.md b/blueprints/REPORT.md index 502b85e5..30827ff6 100644 --- a/blueprints/REPORT.md +++ b/blueprints/REPORT.md @@ -4,7 +4,7 @@ LightRAG supports a modular storage architecture with 4 distinct storage types that can be mixed and matched: - **Graph Storage**: Knowledge graph relationships -- **Vector Storage**: Document embeddings +- **Vector Storage**: Document embeddings - **KV Storage**: Key-value pairs and metadata - **Document Status Storage**: Document processing status @@ -44,7 +44,7 @@ This report analyzes 25+ storage implementations across 8 database technologies **Configuration:** ```yaml LIGHTRAG_KV_STORAGE: PGKVStorage -LIGHTRAG_VECTOR_STORAGE: PGVectorStorage +LIGHTRAG_VECTOR_STORAGE: PGVectorStorage LIGHTRAG_DOC_STATUS_STORAGE: PGDocStatusStorage LIGHTRAG_GRAPH_STORAGE: PGGraphStorage # Requires AGE extension ``` @@ -175,7 +175,7 @@ LIGHTRAG_DOC_STATUS_STORAGE: MongoDocStatusStorage ```yaml LIGHTRAG_GRAPH_STORAGE: Neo4JStorage -LIGHTRAG_VECTOR_STORAGE: MilvusVectorDBStorage +LIGHTRAG_VECTOR_STORAGE: MilvusVectorDBStorage LIGHTRAG_KV_STORAGE: RedisKVStorage LIGHTRAG_DOC_STATUS_STORAGE: PGDocStatusStorage ``` @@ -209,7 +209,7 @@ graph LR ```yaml LIGHTRAG_GRAPH_STORAGE: NetworkXStorage LIGHTRAG_VECTOR_STORAGE: QdrantVectorDBStorage -LIGHTRAG_KV_STORAGE: RedisKVStorage +LIGHTRAG_KV_STORAGE: RedisKVStorage LIGHTRAG_DOC_STATUS_STORAGE: PGDocStatusStorage ``` @@ -339,7 +339,7 @@ graph LR ### Vector Search Performance (Approximate) | Implementation | Small (1K docs) | Medium (100K docs) | Large (1M+ docs) | Memory Usage | -|---------------|-----------------|--------------------|-----------------|--------------| +|---------------|-----------------|--------------------|-----------------|--------------| | MilvusVectorDB | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | High | | QdrantVectorDB | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | Medium | | PGVectorStorage | ⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐ | Medium | @@ -354,7 +354,7 @@ graph LR | PGGraphStorage | ⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐⭐⭐ | | NetworkXStorage | ⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐ | ⭐⭐ | -### KV Operations Performance +### KV Operations Performance | Implementation | Read Speed | Write Speed | Concurrency | Persistence | |---------------|------------|-------------|-------------|-------------| | RedisKVStorage | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ | @@ -399,7 +399,7 @@ graph LR ### 📚 **Documentation/Knowledge Base** - **Small (<10K docs)**: Development Stack -- **Medium (<100K docs)**: Minimal Stack +- **Medium (<100K docs)**: Minimal Stack - **Large (>100K docs)**: Balanced Stack ### 🔬 **Research/Analytics** @@ -422,7 +422,7 @@ graph LR The **Minimal Stack** (PostgreSQL + NetworkX) provides the best balance of performance, complexity, and cost for most use cases. It offers: - ✅ Production-ready reliability -- ✅ Reasonable performance for medium-scale deployments +- ✅ Reasonable performance for medium-scale deployments - ✅ Low operational overhead - ✅ Clear upgrade path to specialized components @@ -435,4 +435,4 @@ The modular architecture allows gradual optimization based on actual performance --- -*Report generated based on LightRAG v1.3.7 implementation analysis* \ No newline at end of file +*Report generated based on LightRAG v1.3.7 implementation analysis* diff --git a/deploy-stacks.sh b/deploy-stacks.sh index 4c6fc3b5..8f6d321b 100755 --- a/deploy-stacks.sh +++ b/deploy-stacks.sh @@ -54,31 +54,31 @@ create_directories() { deploy_stack() { local stack=$1 local compose_file="docker-compose.${stack}.yml" - + if [ ! -f "$compose_file" ]; then print_error "Compose file $compose_file not found!" return 1 fi - + print_status "Deploying $stack stack..." - + # Stop any existing containers docker-compose -f "$compose_file" down 2>/dev/null || true - + # Start the stack docker-compose -f "$compose_file" up -d - + if [ $? -eq 0 ]; then print_success "$stack stack deployed successfully!" - + # Show running services echo "" print_status "Running services:" docker-compose -f "$compose_file" ps - + # Wait a bit for services to start sleep 5 - + # Check LightRAG health print_status "Checking LightRAG health..." for i in {1..30}; do @@ -93,7 +93,7 @@ deploy_stack() { echo -n "." sleep 2 done - + print_warning "LightRAG health check timed out. Check logs with:" echo "docker-compose -f $compose_file logs lightrag" else @@ -106,12 +106,12 @@ deploy_stack() { stop_stack() { local stack=$1 local compose_file="docker-compose.${stack}.yml" - + if [ ! -f "$compose_file" ]; then print_error "Compose file $compose_file not found!" return 1 fi - + print_status "Stopping $stack stack..." docker-compose -f "$compose_file" down print_success "$stack stack stopped" @@ -121,12 +121,12 @@ stop_stack() { cleanup_stack() { local stack=$1 local compose_file="docker-compose.${stack}.yml" - + if [ ! -f "$compose_file" ]; then print_error "Compose file $compose_file not found!" return 1 fi - + print_warning "This will remove all data for $stack stack. Are you sure? (y/N)" read -r response if [[ "$response" =~ ^([yY][eE][sS]|[yY])$ ]]; then @@ -214,4 +214,4 @@ main() { } # Run main function with all arguments -main "$@" \ No newline at end of file +main "$@" diff --git a/docker-compose.all-in-one.yml b/docker-compose.all-in-one.yml index 506aacaa..bab9e11a 100644 --- a/docker-compose.all-in-one.yml +++ b/docker-compose.all-in-one.yml @@ -17,19 +17,19 @@ services: LIGHTRAG_VECTOR_STORAGE: QdrantVectorDBStorage LIGHTRAG_KV_STORAGE: RedisKVStorage LIGHTRAG_DOC_STATUS_STORAGE: MongoDocStatusStorage - + # Service Connection Details NEO4J_URI: bolt://neo4j:7687 NEO4J_USERNAME: neo4j NEO4J_PASSWORD: lightrag_neo4j_pass - + QDRANT_URL: http://qdrant:6333 - + REDIS_URI: redis://redis:6379 - + MONGO_URI: mongodb://lightrag_user:lightrag_pass@mongodb:27017/lightrag?authSource=admin MONGO_DATABASE: lightrag - + # Performance settings MAX_ASYNC: 6 MAX_TOKENS: 32768 @@ -145,4 +145,4 @@ volumes: networks: lightrag-aio-network: - driver: bridge \ No newline at end of file + driver: bridge diff --git a/docker-compose.balanced.yml b/docker-compose.balanced.yml index 579331ab..38584b4c 100644 --- a/docker-compose.balanced.yml +++ b/docker-compose.balanced.yml @@ -1,7 +1,7 @@ version: '3.8' # Production Balanced Stack -# NetworkX + Qdrant + Redis + PostgreSQL +# NetworkX + Qdrant + Redis + PostgreSQL # Best for: Production deployments prioritizing simplicity services: @@ -17,18 +17,18 @@ services: LIGHTRAG_VECTOR_STORAGE: QdrantVectorDBStorage LIGHTRAG_KV_STORAGE: RedisKVStorage LIGHTRAG_DOC_STATUS_STORAGE: PGDocStatusStorage - + # Service Connection Details QDRANT_URL: http://qdrant:6333 - + REDIS_URI: redis://redis:6379 - + POSTGRES_HOST: postgres POSTGRES_PORT: 5432 POSTGRES_USER: lightrag_user POSTGRES_PASSWORD: lightrag_pass POSTGRES_DATABASE: lightrag - + # Performance settings MAX_ASYNC: 6 MAX_TOKENS: 32768 @@ -119,4 +119,4 @@ volumes: networks: lightrag-balanced-network: - driver: bridge \ No newline at end of file + driver: bridge diff --git a/docker-compose.development.yml b/docker-compose.development.yml index c2246d97..d1152d3a 100644 --- a/docker-compose.development.yml +++ b/docker-compose.development.yml @@ -17,14 +17,14 @@ services: LIGHTRAG_VECTOR_STORAGE: NanoVectorDBStorage LIGHTRAG_KV_STORAGE: JsonKVStorage LIGHTRAG_DOC_STATUS_STORAGE: JsonDocStatusStorage - + # Development settings MAX_ASYNC: 2 MAX_TOKENS: 16384 ENABLE_LLM_CACHE: true ENABLE_LLM_CACHE_FOR_EXTRACT: false LOG_LEVEL: DEBUG - + # No external database connections needed ports: - "9621:9621" @@ -78,4 +78,4 @@ volumes: networks: lightrag-dev-network: - driver: bridge \ No newline at end of file + driver: bridge diff --git a/docker-compose.high-performance.yml b/docker-compose.high-performance.yml index ae7465cb..fd5ff14d 100644 --- a/docker-compose.high-performance.yml +++ b/docker-compose.high-performance.yml @@ -17,23 +17,23 @@ services: LIGHTRAG_VECTOR_STORAGE: MilvusVectorDBStorage LIGHTRAG_KV_STORAGE: RedisKVStorage LIGHTRAG_DOC_STATUS_STORAGE: PGDocStatusStorage - + # Service Connection Details NEO4J_URI: bolt://neo4j:7687 NEO4J_USERNAME: neo4j NEO4J_PASSWORD: lightrag_neo4j_pass - + MILVUS_URI: http://milvus-standalone:19530 MILVUS_DB_NAME: lightrag - + REDIS_URI: redis://redis:6379 - + POSTGRES_HOST: postgres POSTGRES_PORT: 5432 POSTGRES_USER: lightrag_user POSTGRES_PASSWORD: lightrag_pass POSTGRES_DATABASE: lightrag - + # Performance optimizations MAX_ASYNC: 8 MAX_TOKENS: 32768 @@ -196,4 +196,4 @@ volumes: networks: lightrag-hp-network: - driver: bridge \ No newline at end of file + driver: bridge diff --git a/docker-compose.minimal.yml b/docker-compose.minimal.yml index b02a3097..16ccf389 100644 --- a/docker-compose.minimal.yml +++ b/docker-compose.minimal.yml @@ -53,4 +53,4 @@ volumes: networks: default: - name: lightrag-minimal-network \ No newline at end of file + name: lightrag-minimal-network diff --git a/init-db/01-init.sql b/init-db/01-init.sql index 00ed2d08..a0c4aca1 100644 --- a/init-db/01-init.sql +++ b/init-db/01-init.sql @@ -1,2 +1,2 @@ -- Enable the vector extension for pgvector -CREATE EXTENSION IF NOT EXISTS vector; \ No newline at end of file +CREATE EXTENSION IF NOT EXISTS vector; diff --git a/k8s-deploy/lightrag-minimal/Chart.yaml b/k8s-deploy/lightrag-minimal/Chart.yaml index c7b95c45..521d2ad8 100644 --- a/k8s-deploy/lightrag-minimal/Chart.yaml +++ b/k8s-deploy/lightrag-minimal/Chart.yaml @@ -10,4 +10,4 @@ dependencies: - name: postgresql version: "~12.0.0" repository: "https://charts.bitnami.com/bitnami" - condition: postgresql.enabled \ No newline at end of file + condition: postgresql.enabled diff --git a/k8s-deploy/lightrag-minimal/README.md b/k8s-deploy/lightrag-minimal/README.md index 0a658fe4..97d43067 100644 --- a/k8s-deploy/lightrag-minimal/README.md +++ b/k8s-deploy/lightrag-minimal/README.md @@ -66,11 +66,11 @@ env: EMBEDDING_BINDING_HOST: "https://api.openai.com/v1" EMBEDDING_MODEL: "text-embedding-ada-002" EMBEDDING_DIM: "1536" - + # Conservative concurrency (prevents API errors) MAX_ASYNC: "4" MAX_PARALLEL_INSERT: "2" - + # LLM Configuration ENABLE_LLM_CACHE: "true" ENABLE_LLM_CACHE_FOR_EXTRACT: "true" @@ -207,7 +207,7 @@ python ../../../load_docs.py ../docs --endpoint http://localhost:9621 python ../../../load_docs.py ../apolo-copilot/docs/official-apolo-documentation/docs \ --mode urls --base-url https://docs.apolo.us/index/ --endpoint http://localhost:9621 -# Load custom documentation with URL references +# Load custom documentation with URL references python ../../../load_docs.py /path/to/docs \ --mode urls --base-url https://your-docs.example.com/docs/ --endpoint http://localhost:9621 ``` @@ -241,7 +241,7 @@ docs/ **URL Mapping Rules:** - `.md` extension is removed from URLs -- `README.md` files map to their directory URL +- `README.md` files map to their directory URL - Subdirectories become URL path segments - File and folder names should match URL slugs exactly @@ -284,7 +284,7 @@ Both modes produce similar output with different reference formats: ``` **URLs Mode References:** -``` +``` ### References - [DC] https://docs.apolo.us/index/getting-started/installation - [KG] https://docs.apolo.us/index/administration/cluster-setup @@ -332,13 +332,13 @@ kubectl delete namespace lightrag ## Validated Features -✅ **Pure Helm Deployment** - No manual kubectl apply commands needed -✅ **PostgreSQL with pgvector** - Automatic extension creation via proper image -✅ **Environment Flexibility** - Separate dev/prod configurations -✅ **Document Loading** - Working API with `file_source` parameter -✅ **Conservative Concurrency** - Prevents OpenAI API rate limiting -✅ **Health Monitoring** - Comprehensive health checks and status endpoints -✅ **Persistent Storage** - Data survives pod restarts and cluster updates +✅ **Pure Helm Deployment** - No manual kubectl apply commands needed +✅ **PostgreSQL with pgvector** - Automatic extension creation via proper image +✅ **Environment Flexibility** - Separate dev/prod configurations +✅ **Document Loading** - Working API with `file_source` parameter +✅ **Conservative Concurrency** - Prevents OpenAI API rate limiting +✅ **Health Monitoring** - Comprehensive health checks and status endpoints +✅ **Persistent Storage** - Data survives pod restarts and cluster updates ## Comparison with Docker Compose diff --git a/k8s-deploy/lightrag-minimal/templates/NOTES.txt b/k8s-deploy/lightrag-minimal/templates/NOTES.txt index ae2c1148..803ed882 100644 --- a/k8s-deploy/lightrag-minimal/templates/NOTES.txt +++ b/k8s-deploy/lightrag-minimal/templates/NOTES.txt @@ -15,7 +15,7 @@ {{- else }} # Start port forwarding (run in background): kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ include "lightrag-minimal.fullname" . }} 9621:9621 & - + 🌐 Web UI: http://localhost:9621/webui 📚 API Docs: http://localhost:9621/docs 🔍 Health Check: http://localhost:9621/health @@ -27,10 +27,10 @@ 4. Load your documents: # Install httpx if needed: pip install httpx - + # Files mode (file path references) - Default python ../../../load_docs.py /path/to/your/docs --endpoint http://localhost:9621 - + # URLs mode (website URL references) - Recommended for public docs # Note: Local file structure must match your docs site URL structure python ../../../load_docs.py /path/to/docs --mode urls \ @@ -39,7 +39,7 @@ 5. Monitor your deployment: # Check pods status kubectl get pods --namespace {{ .Release.Namespace }} - + # View logs kubectl logs --namespace {{ .Release.Namespace }} -l app.kubernetes.io/name={{ include "lightrag-minimal.name" . }} -f @@ -51,4 +51,4 @@ Configuration Summary: 🤖 LLM Model: {{ .Values.env.LLM_MODEL }} 📊 Concurrency: MAX_ASYNC={{ .Values.env.MAX_ASYNC }}, MAX_PARALLEL_INSERT={{ .Values.env.MAX_PARALLEL_INSERT }} -📖 For detailed usage instructions, see the README.md in the chart directory. \ No newline at end of file +📖 For detailed usage instructions, see the README.md in the chart directory. diff --git a/k8s-deploy/lightrag-minimal/templates/deployment.yaml b/k8s-deploy/lightrag-minimal/templates/deployment.yaml index 9f62ed22..7ff5b21d 100644 --- a/k8s-deploy/lightrag-minimal/templates/deployment.yaml +++ b/k8s-deploy/lightrag-minimal/templates/deployment.yaml @@ -43,13 +43,13 @@ spec: value: {{ .Values.env.HOST | quote }} - name: PORT value: {{ .Values.env.PORT | quote }} - + # Web UI configuration - name: WEBUI_TITLE value: {{ .Values.env.WEBUI_TITLE | quote }} - name: WEBUI_DESCRIPTION value: {{ .Values.env.WEBUI_DESCRIPTION | quote }} - + # LLM configuration - name: LLM_BINDING value: {{ .Values.env.LLM_BINDING | quote }} @@ -62,7 +62,7 @@ spec: secretKeyRef: name: {{ include "lightrag-minimal.secretName" . }} key: llm-api-key - + # Embedding configuration - name: EMBEDDING_BINDING value: {{ .Values.env.EMBEDDING_BINDING | quote }} @@ -106,7 +106,7 @@ spec: value: {{ .Values.env.LIGHTRAG_DOC_STATUS_STORAGE | quote }} - name: LIGHTRAG_GRAPH_STORAGE value: {{ .Values.env.LIGHTRAG_GRAPH_STORAGE | quote }} - + # PostgreSQL configuration - name: POSTGRES_HOST value: {{ include "lightrag-minimal.postgresqlHost" . | quote }} @@ -123,7 +123,7 @@ spec: value: {{ .Values.env.POSTGRES_DATABASE | quote }} - name: POSTGRES_WORKSPACE value: {{ .Values.env.POSTGRES_WORKSPACE | quote }} - + {{- if .Values.healthCheck.enabled }} livenessProbe: httpGet: @@ -142,10 +142,10 @@ spec: timeoutSeconds: 5 failureThreshold: 3 {{- end }} - + resources: {{- toYaml .Values.resources | nindent 12 }} - + {{- if .Values.persistence.enabled }} volumeMounts: - name: rag-storage @@ -153,7 +153,7 @@ spec: - name: inputs mountPath: /app/inputs {{- end }} - + {{- if .Values.persistence.enabled }} volumes: - name: rag-storage @@ -163,7 +163,7 @@ spec: persistentVolumeClaim: claimName: {{ include "lightrag-minimal.fullname" . }}-inputs {{- end }} - + {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/k8s-deploy/lightrag-minimal/templates/hpa.yaml b/k8s-deploy/lightrag-minimal/templates/hpa.yaml index 8313e20b..4a27aad8 100644 --- a/k8s-deploy/lightrag-minimal/templates/hpa.yaml +++ b/k8s-deploy/lightrag-minimal/templates/hpa.yaml @@ -29,4 +29,4 @@ spec: type: Utilization averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/k8s-deploy/lightrag-minimal/templates/ingress.yaml b/k8s-deploy/lightrag-minimal/templates/ingress.yaml index 43d8c47c..a7f24847 100644 --- a/k8s-deploy/lightrag-minimal/templates/ingress.yaml +++ b/k8s-deploy/lightrag-minimal/templates/ingress.yaml @@ -41,4 +41,4 @@ spec: port: name: http {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/k8s-deploy/lightrag-minimal/templates/pvc.yaml b/k8s-deploy/lightrag-minimal/templates/pvc.yaml index a8f63bb8..ccedec25 100644 --- a/k8s-deploy/lightrag-minimal/templates/pvc.yaml +++ b/k8s-deploy/lightrag-minimal/templates/pvc.yaml @@ -32,4 +32,4 @@ spec: {{- if .Values.persistence.inputs.storageClass }} storageClassName: {{ .Values.persistence.inputs.storageClass }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/k8s-deploy/lightrag-minimal/templates/service.yaml b/k8s-deploy/lightrag-minimal/templates/service.yaml index cd6f0278..b95e5b94 100644 --- a/k8s-deploy/lightrag-minimal/templates/service.yaml +++ b/k8s-deploy/lightrag-minimal/templates/service.yaml @@ -12,4 +12,4 @@ spec: protocol: TCP name: http selector: - {{- include "lightrag-minimal.selectorLabels" . | nindent 4 }} \ No newline at end of file + {{- include "lightrag-minimal.selectorLabels" . | nindent 4 }} diff --git a/k8s-deploy/lightrag-minimal/templates/serviceaccount.yaml b/k8s-deploy/lightrag-minimal/templates/serviceaccount.yaml index ffc678ae..05117586 100644 --- a/k8s-deploy/lightrag-minimal/templates/serviceaccount.yaml +++ b/k8s-deploy/lightrag-minimal/templates/serviceaccount.yaml @@ -9,4 +9,4 @@ metadata: annotations: {{- toYaml . | nindent 4 }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/k8s-deploy/lightrag/templates/ingress.yaml b/k8s-deploy/lightrag/templates/ingress.yaml index ec6e9117..00cc3016 100644 --- a/k8s-deploy/lightrag/templates/ingress.yaml +++ b/k8s-deploy/lightrag/templates/ingress.yaml @@ -51,4 +51,4 @@ spec: secretName: {{ .secretName }} {{- end }} {{- end }} -{{- end }} \ No newline at end of file +{{- end }} diff --git a/k8s-deploy/lightrag/values.yaml b/k8s-deploy/lightrag/values.yaml index b1c74a11..69d3647f 100644 --- a/k8s-deploy/lightrag/values.yaml +++ b/k8s-deploy/lightrag/values.yaml @@ -81,4 +81,4 @@ tolerations: affinity: {} -nodeSelector: {} \ No newline at end of file +nodeSelector: {}