Add Helm chart, Docs, and Config conversion script
Some checks failed
Build / Code Quality Checks (push) Successful in 15m11s
Build / Build & Push Docker Images (worker) (push) Successful in 13m44s
Build / Build & Push Docker Images (frontend) (push) Successful in 5m8s
Build / Build & Push Docker Images (chat) (push) Failing after 30m7s
Build / Build & Push Docker Images (api) (push) Failing after 21m39s
Some checks failed
Build / Code Quality Checks (push) Successful in 15m11s
Build / Build & Push Docker Images (worker) (push) Successful in 13m44s
Build / Build & Push Docker Images (frontend) (push) Successful in 5m8s
Build / Build & Push Docker Images (chat) (push) Failing after 30m7s
Build / Build & Push Docker Images (api) (push) Failing after 21m39s
This commit is contained in:
181
deploy/helm/datacenter-docs/values-development.yaml
Normal file
181
deploy/helm/datacenter-docs/values-development.yaml
Normal file
@@ -0,0 +1,181 @@
|
||||
# Development values for datacenter-docs
|
||||
# This configuration is optimized for local development and testing
|
||||
# Use with: helm install dev ./datacenter-docs -f values-development.yaml
|
||||
|
||||
global:
|
||||
imagePullPolicy: IfNotPresent
|
||||
storageClass: ""
|
||||
|
||||
# MongoDB - minimal resources for development
|
||||
mongodb:
|
||||
enabled: true
|
||||
image:
|
||||
repository: mongo
|
||||
tag: "7"
|
||||
pullPolicy: IfNotPresent
|
||||
auth:
|
||||
rootUsername: admin
|
||||
rootPassword: admin123
|
||||
database: datacenter_docs
|
||||
persistence:
|
||||
enabled: false # Use emptyDir for faster testing
|
||||
size: 1Gi
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
|
||||
# Redis - minimal resources
|
||||
redis:
|
||||
enabled: true
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
cpu: "200m"
|
||||
|
||||
# API service - single replica for development
|
||||
api:
|
||||
enabled: true
|
||||
replicaCount: 1
|
||||
image:
|
||||
repository: datacenter-docs-api
|
||||
tag: "latest"
|
||||
pullPolicy: IfNotPresent
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 8000
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1Gi"
|
||||
cpu: "500m"
|
||||
autoscaling:
|
||||
enabled: false # Disable for development
|
||||
|
||||
# Chat service - disabled by default (not implemented)
|
||||
chat:
|
||||
enabled: false
|
||||
|
||||
# Worker service - disabled by default (not implemented)
|
||||
worker:
|
||||
enabled: false
|
||||
|
||||
# Frontend - single replica
|
||||
frontend:
|
||||
enabled: true
|
||||
replicaCount: 1
|
||||
image:
|
||||
repository: datacenter-docs-frontend
|
||||
tag: "latest"
|
||||
pullPolicy: IfNotPresent
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
cpu: "50m"
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
|
||||
# Ingress - disabled for development (use port-forward)
|
||||
ingress:
|
||||
enabled: false
|
||||
|
||||
# Application configuration for development
|
||||
config:
|
||||
mongodbUrl: "mongodb://admin:admin123@{{ include \"datacenter-docs.mongodb.fullname\" . }}:27017/datacenter_docs?authSource=admin"
|
||||
redisUrl: "redis://{{ include \"datacenter-docs.redis.fullname\" . }}:6379/0"
|
||||
|
||||
llm:
|
||||
# Use local LLM for development (no API costs)
|
||||
baseUrl: "http://localhost:11434/v1" # Ollama
|
||||
model: "llama2"
|
||||
|
||||
# Or use OpenAI with a test key
|
||||
# baseUrl: "https://api.openai.com/v1"
|
||||
# model: "gpt-3.5-turbo"
|
||||
|
||||
maxTokens: 2048
|
||||
temperature: 0.7
|
||||
|
||||
mcp:
|
||||
baseUrl: "http://mcp-server:8080"
|
||||
timeout: 30
|
||||
|
||||
# Auto-remediation in dry-run mode for safety
|
||||
autoRemediation:
|
||||
enabled: true
|
||||
minReliabilityScore: 85.0
|
||||
requireApprovalThreshold: 90.0
|
||||
maxActionsPerHour: 100
|
||||
dryRun: true # ALWAYS dry-run in development
|
||||
|
||||
apiKeyEnabled: false # Disable for easier testing
|
||||
corsOrigins:
|
||||
- "http://localhost:3000"
|
||||
- "http://localhost:8080"
|
||||
- "http://localhost:8000"
|
||||
|
||||
logLevel: "DEBUG" # Verbose logging for development
|
||||
logFormat: "text" # Human-readable logs
|
||||
|
||||
# Secrets - safe defaults for development only
|
||||
secrets:
|
||||
llmApiKey: "not-needed-for-local-llm"
|
||||
apiSecretKey: "dev-secret-key-not-for-production"
|
||||
mongodbUsername: "admin"
|
||||
mongodbPassword: "admin123"
|
||||
|
||||
# ServiceAccount
|
||||
serviceAccount:
|
||||
create: true
|
||||
annotations: {}
|
||||
name: ""
|
||||
|
||||
# Relaxed security for development
|
||||
podSecurityContext:
|
||||
fsGroup: 1000
|
||||
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
|
||||
# No node selectors or tolerations
|
||||
nodeSelector: {}
|
||||
tolerations: []
|
||||
affinity: {}
|
||||
|
||||
# No priority class
|
||||
priorityClassName: ""
|
||||
|
||||
# Development tips:
|
||||
#
|
||||
# 1. Port-forward to access services:
|
||||
# kubectl port-forward svc/dev-datacenter-docs-api 8000:8000
|
||||
# kubectl port-forward svc/dev-datacenter-docs-frontend 8080:80
|
||||
#
|
||||
# 2. View logs:
|
||||
# kubectl logs -l app.kubernetes.io/component=api -f
|
||||
#
|
||||
# 3. Access MongoDB directly:
|
||||
# kubectl port-forward svc/dev-datacenter-docs-mongodb 27017:27017
|
||||
# mongosh mongodb://admin:admin123@localhost:27017
|
||||
#
|
||||
# 4. Quick iteration:
|
||||
# # Make code changes
|
||||
# docker build -t datacenter-docs-api:latest -f deploy/docker/Dockerfile.api .
|
||||
# kubectl rollout restart deployment/dev-datacenter-docs-api
|
||||
#
|
||||
# 5. Clean slate:
|
||||
# helm uninstall dev
|
||||
# kubectl delete pvc --all
|
||||
# helm install dev ./datacenter-docs -f values-development.yaml
|
||||
Reference in New Issue
Block a user