Changes: - Replaced separate api and frontend deployments with single unified app deployment - Updated values.yaml: Changed from api/frontend configs to single app config - Renamed templates: api-deployment.yaml → app-deployment.yaml - Removed frontend-deployment.yaml and frontend-service.yaml (no longer needed) - Updated app image to warehouse13/app (multi-stage Docker build) - Combined resource allocations: 384Mi memory, 350m CPU (up from separate totals) - Updated all example values files (dev, production, air-gapped) - Updated NOTES.txt to reflect single service on port 8000 - Updated ingress to route all traffic to single app service - Added ARCHITECTURE.md documenting the unified container approach Architecture: The application now uses a multi-stage Docker build: 1. Stage 1: Builds Angular frontend with Node 2. Stage 2: Python FastAPI backend that serves static frontend from /static Benefits: - Simplified deployment (1 container instead of 2) - Reduced resource usage (no separate nginx) - Easier scaling (1 deployment to manage) - Consistent versioning (frontend/backend always match) Access pattern: - http://localhost:8000 → Angular frontend - http://localhost:8000/api → FastAPI REST API - http://localhost:8000/docs → API documentation - http://localhost:8000/health → Health check 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
70 lines
1.3 KiB
YAML
70 lines
1.3 KiB
YAML
# Warehouse13 - Development/Testing Deployment Example
|
|
# Use this for local testing or CI/CD environments
|
|
|
|
global:
|
|
deploymentMode: "standard"
|
|
storageBackend: "minio"
|
|
|
|
postgres:
|
|
enabled: true
|
|
image:
|
|
repository: postgres
|
|
tag: 15-alpine
|
|
pullPolicy: IfNotPresent
|
|
auth:
|
|
username: dev
|
|
password: dev
|
|
database: warehouse13dev
|
|
persistence:
|
|
enabled: false # Use emptyDir for faster cleanup
|
|
resources:
|
|
requests:
|
|
memory: "128Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "256Mi"
|
|
cpu: "250m"
|
|
|
|
minio:
|
|
enabled: true
|
|
image:
|
|
repository: minio/minio
|
|
tag: latest
|
|
pullPolicy: IfNotPresent
|
|
auth:
|
|
rootUser: minioadmin
|
|
rootPassword: minioadmin
|
|
persistence:
|
|
enabled: false # Use emptyDir for faster cleanup
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "250m"
|
|
|
|
app:
|
|
enabled: true
|
|
image:
|
|
repository: warehouse13/app
|
|
tag: dev
|
|
pullPolicy: Always # Always pull latest dev image
|
|
replicas: 1
|
|
resources:
|
|
requests:
|
|
memory: "384Mi"
|
|
cpu: "350m"
|
|
limits:
|
|
memory: "768Mi"
|
|
cpu: "750m"
|
|
healthCheck:
|
|
enabled: true
|
|
|
|
ingress:
|
|
enabled: false # Use port-forward for dev
|
|
|
|
serviceAccount:
|
|
create: true
|
|
name: "warehouse13-dev"
|