A comprehensive, production-ready DevOps platform demonstrating Infrastructure as Code, GitOps, and modern cloud-native practices.
Last Updated: December 2024
.
āāā terraform/ # Terraform modules
ā āāā modules/
ā ā āāā vpc/ # VPC, subnets, NAT, IGW
ā ā āāā eks/ # EKS cluster + node groups
ā ā āāā eks-addons/ # EKS add-ons (CSI, CNI, etc.)
ā ā āāā irsa/ # IAM Roles for Service Accounts
ā āāā providers.tf
ā
āāā terragrunt/ # Terragrunt environment configs
ā āāā terragrunt.hcl # Root configuration
ā āāā dev/
ā ā āāā env.hcl
ā ā āāā vpc/
ā ā āāā eks/
ā ā āāā eks-addons/
ā āāā staging/
ā āāā prod/
ā
āāā kubernetes/ # Kubernetes manifests
ā āāā flux-system/ # Flux bootstrap configuration
ā āāā infrastructure/ # Cluster-wide infrastructure
ā ā āāā sources/ # Helm repositories
ā ā āāā monitoring/ # Prometheus, Grafana
ā ā āāā nvidia/ # NVIDIA device plugin
ā ā āāā ingress/ # Ingress controller
ā āāā apps/ # Application deployments
ā āāā sample-gpu-app/
ā
āāā .github/
ā āāā workflows/
ā āāā terraform-ci.yaml # TF validate, plan, apply
ā āāā container-build.yaml # Build & push containers
ā āāā flux-diff.yaml # Preview Flux changes
ā
āāā docker/ # Dockerfiles
ā āāā sample-gpu-app/
ā
āāā docs/ # Additional documentation
āāā SETUP.md
āāā GPU-WORKLOADS.md
āāā TROUBLESHOOTING.md
- Terraform Modules: Reusable, versioned modules for VPC and EKS
- Terragrunt: DRY configuration management across environments
- State Management: Remote state with S3 + DynamoDB locking
- GPU Support: Pre-configured node groups for NVIDIA GPU instances
- Automated Deployments: Git as single source of truth
- Helm Controller: Declarative Helm release management
- Kustomize Integration: Environment-specific overlays
- Image Automation: Automatic image updates (optional)
- Prometheus: Metrics collection with GPU metrics support
- Grafana: Pre-configured dashboards for K8s and GPU monitoring
- Alertmanager: Alert routing and notification
- Infrastructure Pipeline: Validate ā Plan ā Apply workflow
- Container Pipeline: Build, scan, and push to ECR
- Security Scanning: Trivy for container vulnerability scanning
- Cost Estimation: Infracost integration for PR cost preview
- AWS CLI v2 configured with appropriate credentials
- Terraform >= 1.5.0
- Terragrunt >= 0.50.0
- kubectl >= 1.28
- Flux CLI >= 2.0
- Docker (for building containers)
git clone https://github.com/mateenali66/devops-experiment.git cd devops-experiment # Set your AWS profile export AWS_PROFILE=personal
cd terragrunt/dev
terragrunt run-all init# Review the plan terragrunt run-all plan # Apply infrastructure terragrunt run-all apply
# Configure kubectl aws eks update-kubeconfig --name eks-dev-cluster --region us-west-2 # Bootstrap Flux flux bootstrap github \ --owner=mateenali66 \ --repository=devops-experiment \ --branch=main \ --path=kubernetes/clusters/dev \ --personal
# Port forward Grafana kubectl port-forward svc/kube-prometheus-stack-grafana -n monitoring 3000:80 # Default credentials: admin / prom-operator
This platform supports NVIDIA GPU workloads out of the box:
# Example GPU pod request resources: limits: nvidia.com/gpu: 1
See docs/GPU-WORKLOADS.md for detailed GPU configuration.
Pre-configured Grafana dashboards:
- Kubernetes Cluster Overview
- Node Exporter / Node Metrics
- NVIDIA GPU Metrics (DCGM)
- Flux GitOps Status
- Container Resource Usage
- Private EKS endpoint (configurable)
- IRSA for pod-level AWS permissions
- Network policies for pod isolation
- Secrets management via External Secrets Operator
- Container image scanning in CI/CD
- Spot instances for non-GPU workloads
- Cluster autoscaler for dynamic scaling
- Karpenter support (optional)
- Right-sizing recommendations via Grafana
- Fork the repository
- Create a feature branch
- Submit a pull request
MIT License - see LICENSE


