EKS IPv4 lab: running a cluster out of addresses

  • Amazon EKS
  • Amazon VPC CNI
  • Terraform
  • Bash
  • Python
  • GitHub Actions

Overview

A lab I built to check the numbers in the article Your EKS cluster has CPU to spare and no IP addresses left. It builds an EKS cluster in a VPC that’s deliberately too small, fills the nodes with pause pods until addresses run out, and then tries the fixes one at a time. The code and the full output of my run are in the eks-ipv4-lab repository.

How it’s set up

What it showed

With the default settings the cluster stopped at 38 pods, with the nodes allowed 58. Tuning the warm pool gained two. Prefix delegation in the same small subnets placed none at all, and moving pods to a 100.64.0.0/16 range ran all 58. A run costs about a dollar, and everything is destroyed at the end.