GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mateenali66/devops-experiment

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
diagrams
diagrams
 
 
docker/sample-gpu-app
docker/sample-gpu-app
 
 
docs
docs
 
 
kubernetes
kubernetes
 
 
terraform/modules
terraform/modules
 
 
terragrunt
terragrunt
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

DevOps Experiment - Production-Grade AWS EKS Platform

Terraform Kubernetes AWS GPU GitOps

A comprehensive, production-ready DevOps platform demonstrating Infrastructure as Code, GitOps, and modern cloud-native practices.

Last Updated: December 2024

šŸ—ļø Architecture Overview

EKS Architecture

CI/CD Pipeline

CI/CD Pipeline

GitOps Workflow

GitOps Flow

šŸ“ Project Structure

.
ā”œā”€ā”€ 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

šŸš€ Features

Infrastructure as Code

  • 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

GitOps with Flux

  • 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)

Monitoring & Observability

  • Prometheus: Metrics collection with GPU metrics support
  • Grafana: Pre-configured dashboards for K8s and GPU monitoring
  • Alertmanager: Alert routing and notification

CI/CD with GitHub Actions

  • 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

šŸ› ļø Prerequisites

  • 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)

šŸ Quick Start

1. Clone and Configure

git clone https://github.com/mateenali66/devops-experiment.git
cd devops-experiment

# Set your AWS profile
export AWS_PROFILE=personal

2. Initialize Backend (First Time Only)

cd terragrunt/dev
terragrunt run-all init

3. Deploy Infrastructure

# Review the plan
terragrunt run-all plan

# Apply infrastructure
terragrunt run-all apply

4. Bootstrap Flux

# 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

5. Access Grafana

# Port forward Grafana
kubectl port-forward svc/kube-prometheus-stack-grafana -n monitoring 3000:80

# Default credentials: admin / prom-operator

šŸŽ® GPU Workloads

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.

šŸ“Š Monitoring Dashboards

Pre-configured Grafana dashboards:

  • Kubernetes Cluster Overview
  • Node Exporter / Node Metrics
  • NVIDIA GPU Metrics (DCGM)
  • Flux GitOps Status
  • Container Resource Usage

šŸ” Security Considerations

  • 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

šŸ’° Cost Optimization

  • Spot instances for non-GPU workloads
  • Cluster autoscaler for dynamic scaling
  • Karpenter support (optional)
  • Right-sizing recommendations via Grafana

šŸ“š Documentation

  • Setup Guide
  • GPU Workloads Guide
  • Troubleshooting

šŸ¤ Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

šŸ“œ License

MIT License - see LICENSE

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity

Stars

6 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.