Skip to content

Bounty Submission: Universal One-Click Deployment (Docker + K8s + Tilt) for FinMind#621

Open
damiehttp wants to merge 1 commit intorohitdash08:mainfrom
damiehttp:feat/universal-deployment
Open

Bounty Submission: Universal One-Click Deployment (Docker + K8s + Tilt) for FinMind#621
damiehttp wants to merge 1 commit intorohitdash08:mainfrom
damiehttp:feat/universal-deployment

Conversation

@damiehttp
Copy link

Universal Deployment System for FinMind

44 new files implementing production-grade deployment across all mandatory platforms.

Kubernetes (Full Stack)

  • Helm charts with backend, frontend, PostgreSQL, Redis deployments
  • HPA autoscaling (v2) — backend 2-10 pods (CPU+memory), frontend 2-8 pods
  • Ingress with TLS-ready config and cert-manager annotation support
  • Secret management via K8s Secrets (with secrets.create: false for External Secrets Operator)
  • Health probes (liveness + readiness) on all components
  • Prometheus annotations + optional ServiceMonitor for Prometheus Operator
  • Init container for database migration (init-db)
  • PVC for PostgreSQL persistence

Tilt (Local K8s Dev)

  • Tiltfile with live-reload for backend and frontend
  • Automatic secret creation from .env
  • Port-forwarding for all services
  • Manual triggers for tests and DB init

PaaS One-Click Deploy

Platform Config Type
Railway railway.toml Full stack
Heroku heroku.yml + app.json Full stack + Deploy button
DigitalOcean do-app.yaml Full stack with managed DBs
Render render.yaml Blueprint with managed DBs
Fly.io fly.toml Full stack with release_command
Netlify netlify.toml Frontend (SPA)
Vercel vercel.json Frontend (SPA)

Cloud Providers

Provider Config Features
AWS ECS Fargate CloudFormation ALB, auto-scaling 2-10, CloudWatch, SSM
GCP Cloud Run Deploy script Cloud Build, Secret Manager, auto-scaling 0-10
Azure Container Apps Deploy script PostgreSQL Flexible Server, Redis Cache

Runtime Verification

All deployments target:

  • ✅ Frontend reachable (nginx serving SPA)
  • ✅ Backend health at /health
  • ✅ DB + Redis connected (health check verifies)
  • ✅ Auth flows (JWT + secret management)
  • ✅ Core modules (Flask app with full middleware stack)

Closes #144

Implements production-grade deployment system across all mandatory platforms.

## Kubernetes (Helm + Tilt)
- Full Helm chart with backend, frontend, PostgreSQL, Redis
- HPA autoscaling (CPU + memory based)
- Ingress with TLS/cert-manager support
- Secret management via K8s Secrets
- Health probes (liveness + readiness) on all components
- Prometheus annotations + ServiceMonitor
- Init container for DB migrations
- PVC for PostgreSQL persistence
- Tiltfile for local K8s dev with live-reload

## PaaS Platforms
- Railway (railway.toml)
- Heroku (heroku.yml + app.json with Deploy button)
- DigitalOcean App Platform (do-app.yaml)
- Render (render.yaml Blueprint)
- Fly.io (fly.toml with release_command)
- Netlify (netlify.toml - frontend)
- Vercel (vercel.json - frontend)

## Cloud Providers
- AWS ECS Fargate (CloudFormation with ALB, auto-scaling, CloudWatch)
- GCP Cloud Run (deploy script with Cloud Build, Secret Manager)
- Azure Container Apps (deploy script with managed DBs)

## Documentation
- deploy/README.md with directory structure and quick reference
- Per-platform README with step-by-step instructions

Closes rohitdash08#144
@damiehttp damiehttp requested a review from rohitdash08 as a code owner March 23, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[$1000 Bounty] Universal One-Click Deployment for FinMind (Docker + Kubernetes + Tilt)

1 participant