Scripts
Location:
apps/backend/kubernetes/scripts/
k3d-setup.sh
Section titled “k3d-setup.sh”Sets up a complete local Kubernetes environment for development using k3d.
cd apps/backend/kubernetes
# Full setup (create cluster, build images, deploy everything)./scripts/k3d-setup.sh
# Rebuild images and restart deployments./scripts/k3d-setup.sh rebuild
# Show current status./scripts/k3d-setup.sh status
# Delete the cluster./scripts/k3d-setup.sh deleteWhat it does:
- Creates a k3d cluster with a local container registry (
localhost:5050) - Deploys MinIO for S3-compatible storage (no external S3 needed)
- Builds and pushes API and Executor images
- Generates a
values-local.yamlwith dev settings - Installs the Helm chart
See Local development for details.
setup-config.sh
Section titled “setup-config.sh”Creates/updates Kubernetes Secret and ConfigMap resources from your environment or apps/backend/kubernetes/.env.
cd apps/backend/kubernetes./scripts/setup-config.shSee Configuration for what is created.
migrate-db.sh
Section titled “migrate-db.sh”Applies the Prisma schema to the database.
- Host tooling mode:
cd apps/backend/kubernetes./scripts/migrate-db.sh- Docker mode (uses the
db-migrateservice inapps/backend/kubernetes/docker-compose.yml):
cd apps/backend/kubernetes./scripts/migrate-db.sh --docker