feat: add BetterUp deployment infrastructure for Langflow#1
Open
ryanclark2 wants to merge 1 commit intomainfrom
Open
feat: add BetterUp deployment infrastructure for Langflow#1ryanclark2 wants to merge 1 commit intomainfrom
ryanclark2 wants to merge 1 commit intomainfrom
Conversation
Add comprehensive Kubernetes deployment and CI/CD setup for deploying Langflow in BetterUp infrastructure. ## 🚀 Kubernetes Deployment - **Helm Chart**: Complete chart with Deployment, Service, HPA, PDB, Secrets - **Security**: Non-root containers, security contexts, resource limits - **Scaling**: Horizontal Pod Autoscaler with CPU-based scaling - **Health Checks**: Liveness and readiness probes for reliability - **Environment Values**: Dev-specific configuration with staging/prod ready ## 🔄 CI/CD Pipeline - **Build Workflow**: Docker image build and push to ECR - **Deployment Pipeline**: Helm chart packaging and Kubernetes deployment - **Test Suite**: Python tests and Docker build validation - **Environment Promotion**: Automated dev/staging, manual production ## 🐳 Production Container - **Multi-stage Build**: Optimized for security and size - **PostgreSQL Ready**: Built-in database connectivity with langflow[postgresql] - **Security**: Non-root user (1000:1000), minimal attack surface - **Health Checks**: Built-in HTTP health endpoint monitoring ## 🏗️ Infrastructure Integration - **ECR**: Container registry for betterup-langflow-us-east-1 - **EKS**: Kubernetes deployment with proper service accounts - **RDS**: PostgreSQL database (managed via betterup-infrastructure) - **IAM**: Service account with AWS role integration - **Secrets**: Database credentials via AWS Secrets Manager ## 📁 Repository Changes - Add `release/kubernetes/langflow/` - Complete Helm chart - Add `.github/workflows/` - CI/CD workflows following BetterUp patterns - Add `Dockerfile.production` - Production-optimized container - Add `DEPLOYMENT.md` - Comprehensive deployment documentation - Remove `docker_example/` - Replaced with production setup ## 🔧 Environment Support - **Dev (us-east-1-dev)**: Single replica, reduced resources, debug logging - **Staging**: Multi-replica, production-like setup (future) - **Production**: High-availability configuration (future) ## 📚 Documentation - **DEPLOYMENT.md**: Complete deployment guide with troubleshooting - **Architecture Diagrams**: GitOps workflow and component overview - **Environment Configuration**: Detailed setup for each environment ## ⚡ Next Steps 1. Deploy infrastructure from betterup-infrastructure PR langflow-ai#3373 2. Create ECR repository and configure IAM roles 3. Set up GitHub Actions secrets and environments 4. Test deployment pipeline in dev environment This follows established BetterUp patterns from identity-service and lighthouse deployments. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add comprehensive Kubernetes deployment and CI/CD infrastructure for deploying Langflow in BetterUp's AWS/EKS environment following established infrastructure patterns.
🚀 Key Features
✅ Complete Helm Chart - Deployment, Service, HPA, PDB, Secrets
✅ CI/CD Pipeline - ECR builds, chart packaging, automated deployment
✅ Production Container - Security-hardened Dockerfile with PostgreSQL support
✅ Environment Support - Dev, staging, production configurations
✅ Security - Non-root containers, resource limits, health checks
✅ Documentation - Comprehensive deployment guide and troubleshooting
🏗️ Infrastructure Components
Kubernetes Deployment
/release/kubernetes/langflow/following identity-service patternsCI/CD Workflows
build_and_push_staging_image.yml- Docker → ECRstaging_cd.yml- Orchestrates build → package → deployProduction Container
langflow[postgresql]🔧 Environment Configuration
Development (us-east-1-dev)
Staging/Production (Future)
🗄️ Database Integration
betterup-infrastructurerepository📋 Repository Changes
release/kubernetes/langflow/- Complete Helm chart.github/workflows/- CI/CD following BetterUp patternsDockerfile.production- Production-optimized containerDEPLOYMENT.md- Comprehensive documentationdocker_example/- Replaced with production setup🧪 Test Plan
betterup-langflow-us-east-1gha-langflow-us-east-1🔗 Related PRs
🤖 Generated with Claude Code