Skip to content

Scripts

Location:

  • apps/backend/kubernetes/scripts/

Sets up a complete local Kubernetes environment for development using k3d.

Terminal window
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 delete

What 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.yaml with dev settings
  • Installs the Helm chart

See Local development for details.

Creates/updates Kubernetes Secret and ConfigMap resources from your environment or apps/backend/kubernetes/.env.

Terminal window
cd apps/backend/kubernetes
./scripts/setup-config.sh

See Configuration for what is created.

Applies the Prisma schema to the database.

  • Host tooling mode:
Terminal window
cd apps/backend/kubernetes
./scripts/migrate-db.sh
  • Docker mode (uses the db-migrate service in apps/backend/kubernetes/docker-compose.yml):
Terminal window
cd apps/backend/kubernetes
./scripts/migrate-db.sh --docker