Skill 31 · Prompt Library For Startups
Subchapter 31.10
references/prompt-library/container-orchestration.mdMarkdown4 KBView on GitHub
Get help creating an AWS EKS-based containerized application deployment for a Node.js app with PostgreSQL database that can auto-scale and handle traffic spikes cost-effectively.
<context>
I have an existing containerized application that I want to deploy to AWS using Kubernetes with proper orchestration and auto-scaling. Here’s what I need:
Current State:
Docker container running a Node.js web application Application connects to PostgreSQL database Currently running locally with docker-compose Application serves REST API and static frontend
Target Architecture Requirements:
Amazon EKS cluster for Kubernetes orchestration Horizontal Pod Autoscaler based on CPU/memory usage Cluster Autoscaler for node scaling Application Load Balancer for traffic distribution Managed PostgreSQL database (RDS) Container registry (ECR) for image storage
Performance & Scaling:
Handle traffic spikes from 10 to 1000 concurrent users Auto-scale pods between 2-20 replicas Multi-AZ deployment for high availability Rolling updates with zero downtime Health checks and automatic recovery
Cost Optimization:
Use Spot instances for worker nodes where possible Right-size instances based on actual usage Implement resource requests and limits Target monthly cost under $300 Cost monitoring and alerting
Security & Operations:
Network policies for pod-to-pod communication
Secrets management for database credentials
RBAC for cluster access control
Container image vulnerability scanning
Centralized logging with CloudWatch
Monitoring with Prometheus/Grafana or CloudWatch
Deployment & CI/CD:
GitOps workflow preferred
Automated container builds and pushes
Staging and production environments
Rollback capabilities
</context>
Create a comprehensive cloud infrastructure and deployment solution based on the context provided above. Your solution should follow AWS Well-Architected Framework principles (reliability, security, performance efficiency, cost optimization, and operational excellence).
Please provide a complete solution that includes ALL of the following: