🎯 New Structure: - landing/ (root) - Only Makefile, .gitignore, .woodpecker.yml - helm/ - Kubernetes deployment (with argocd inside chart) - docker/ - Docker build configs - peikarband/ - All source code (src, tests, assets, config, tools, docs) ✅ Changes: - Moved Docker files: build/docker/ → docker/ - Moved Helm charts: deploy/helm/ → helm/ - Moved ArgoCD: deploy/argocd/ → helm/peikarband/argocd/ - Moved all source code to peikarband/ - Removed duplicate files (7 files) - Removed old empty directories 🐳 Docker Fixes: - Added npm retry configuration (fetch-retry-mintimeout, etc.) - Added 3-attempt retry mechanism for reflex export - Fixed ECONNREFUSED errors - Updated paths for new structure 📦 Config Updates: - Makefile: Updated all paths (docker/, helm/, peikarband/) - .woodpecker.yml: Updated dockerfile and context paths - .gitignore: Updated data/ path 🧪 Tests: - ✓ Helm lint passes - ✓ All paths validated - ✓ Structure verified 📊 Result: - Before: 20+ files in root, scattered structure - After: 3 files + 3 directories, clean and organized - Production-ready ✨
69 lines
1.2 KiB
YAML
69 lines
1.2 KiB
YAML
# Staging-specific values for peikarband
|
|
|
|
replicaCount: 1
|
|
|
|
image:
|
|
pullPolicy: Always
|
|
|
|
# Reflex configuration for staging
|
|
reflex:
|
|
apiUrl: "https://staging.peikarband.ir" # Staging API URL
|
|
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 256Mi
|
|
|
|
autoscaling:
|
|
enabled: false
|
|
|
|
ingress:
|
|
enabled: true
|
|
className: "traefik"
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "letsencrypt-staging"
|
|
traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
|
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
|
hosts:
|
|
- host: staging.peikarband.ir
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
tls:
|
|
- secretName: peikarband-staging-tls
|
|
hosts:
|
|
- staging.peikarband.ir
|
|
|
|
postgresql:
|
|
enabled: false # Using SQLite for now
|
|
external:
|
|
host: "postgres-staging.default.svc.cluster.local"
|
|
port: "5432"
|
|
database: "peikarband_staging"
|
|
|
|
redis:
|
|
enabled: false # Not used yet
|
|
external:
|
|
host: "redis-staging.default.svc.cluster.local"
|
|
port: "6379"
|
|
|
|
configMap:
|
|
data:
|
|
APP_NAME: "peikarband-staging"
|
|
LOG_LEVEL: "debug"
|
|
ENVIRONMENT: "dev"
|
|
|
|
podDisruptionBudget:
|
|
enabled: false
|
|
|
|
networkPolicy:
|
|
enabled: false
|
|
|
|
monitoring:
|
|
serviceMonitor:
|
|
enabled: false
|
|
|