Skip to content

punkerside/ugperu-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scaling up to +10,000 pods on Amazon EKS - AWS UG Perú Conf 2023

Build Open Source Helpers GitHub Issues GitHub Tag GitHub release (latest by date)

Prerequisites

Deployed resources

1. Amazon AWS

  • Virtual Private Cloud (VPC)
  • Identity and Access Management (IAM)
  • Elastic Container Service for Kubernetes (EKS)
  • Amazon EKS managed node (EKS)

2. Kubernetes

  • Metrics Server
  • Karpenter
  • App + Load

Variables

Name Description Type Default Required
PROJECT Project's name string ugperu no
ENV Environment name string lab no
AWS_DEFAULT_REGION Amazon AWS Region string us-east-1 no
EKS_VERSION Kubernetes version string 1.27 no

Use

  1. Create EKS cluster
make cluster
  1. Configure CNI
make cni
  1. Install components
make components
  1. Install Karpenter
make karpenter
  1. Install demo application
make app
  1. Install loading app
make load

Debug

  1. Observe pod scaling
kubectl get hpa --watch
  1. Observe node scaling
kubectl get nodes --watch
  1. Observe states of the ReplicaSet
kubectl get rs --watch
  1. Observe the state of Karpenter
kubectl logs -f -n karpenter -l app.kubernetes.io/name=karpenter -c controller

Destroy

  1. Stop pod scaling
make reset
  1. Delete infrastructure
make destroy

Authors

The demo is maintained by Ivan Echegaray