Skip to content

Mastering Custom Node Pools in EKS Auto Mode

Keep the managed service. Take back the infrastructure.

A row of shoes on a dark floor: a steel-toe safety boot, a football boot, a running shoe, a kids' sneaker and a leather dress shoe

You don't run a marathon in safety boots. The wrong shoe doesn't fail in the shop. It fails at the 5th kilometer.

EKS Auto Mode hands you a very good pair of running shoes. For most clusters, most of the time, that's the right trade. But when the job calls for something else, the built-in node pools can't be altered to become it.

This is the try-it-at-home companion to the Level 300 talk of the same name (talk summary and takeaways). You'll rebuild the live demo on your own AWS account, typing every command yourself.

What you'll build

flowchart TB
  NC["NodeClass <b>demo-default</b><br/>the infrastructure contract<br/>your IAM role · tags · private subnets<br/>no public IPs · kubelet + sysctl tuning"]
  SP["NodePool <b>stable-static</b><br/>the never-disrupt tier<br/>2 on-demand nodes, always on<br/>drift only outside business hours"]
  BP["NodePool <b>spot-burst</b><br/>the burst-and-save tier<br/>Spot c/m/r, Balanced consolidation<br/>64 vCPU spend ceiling"]
  A["checkout-api<br/>Deployment + PDB"]
  J["report-batch<br/>Job, 12 pods"]
  NC --> SP
  NC --> BP
  SP --> A
  BP --> J
  classDef nodeclass stroke:#5EA0EF,stroke-width:2px
  classDef nodepool stroke:#FF9900,stroke-width:2px
  classDef spot stroke:#59C9A5,stroke-width:2px
  class NC nodeclass
  class SP nodepool
  class BP spot

One NodeClass defines how nodes are built. Two NodePools on top of it make opposite promises about when those nodes may be disrupted. Same infrastructure contract, different disruption contracts. That separation is the whole talk.

The route

Step You'll do Talk section
Prerequisites Tools, a profile, the env vars used everywhere
01 Create an EKS 1.37 Auto Mode cluster with eksctl
02 Read the built-in pools before you replace them The split
03 Create your node IAM role and access entry The NodeClass
04 Write the infrastructure contract The NodeClass
05 Write two disruption contracts The NodePool
06 Land each workload in the right pool Patterns
07 Prove maxPods and vm.max_map_count reached the node The NodeClass
08 Watch Spot nodes drain away The NodePool
09 Break it, weights, policies, live drift, static scale Patterns · Limits
10 Delete everything, in the right order

This costs real money

You'll run an EKS cluster, Auto Mode-managed EC2 instances (two of them 24/7 while the static pool exists) and a NAT gateway. Budget a few hours and finish with Cleanup. Details in Prerequisites.

Allow about 90 minutes end to end, a third of which is waiting for the cluster to create.

Stuck? See Troubleshooting. Every claim on this site links to official AWS, Kubernetes, Karpenter or eksctl documentation in References.