Cloud
Deployment Generator
Production-grade Docker and Kubernetes manifest generation.
Overview
The deployment generator creates production-ready Docker and Kubernetes artifacts from a single configuration object. All manifests follow security best practices including non-root containers, read-only filesystems, and resource limits.
Generate Manifests
typescript
This creates a deploy/ directory with three files.
Generated Files
Dockerfile
Multi-stage build with Node 22 Alpine, non-root user, and health check.
dockerfile
docker-compose.yml
For local development and testing.
kubernetes.yaml
Full production manifests including:
- Deployment — rolling update strategy, security context, probes
- Service — ClusterIP on port 80
- HorizontalPodAutoscaler — CPU-based scaling
- PodDisruptionBudget — minimum availability during updates
- Ingress — (when
domainis provided) TLS-ready routing
Dry Run Mode
Generate manifests as strings without writing to disk. Useful for CI/CD pipelines and API endpoints.
typescript
Configuration Reference
| Option | Type | Default | Description |
|---|---|---|---|
appName | string | — | Application name (RFC 1123) |
version | string | — | Image tag / version |
port | number | — | Container port |
replicas | number | 3 | Initial replica count |
domain | string | — | Ingress hostname (optional) |
registry | string | — | Container image registry |
env | object | — | Environment variables |
resources | object | Sensible defaults | CPU/memory requests and limits |
minReplicas | number | 2 | HPA minimum |
maxReplicas | number | 10 | HPA maximum |
targetCPU | number | 70 | HPA target CPU utilization % |
healthPath | string | '/health' | Probe path |