DEV Community

V-ris Jaijongrak
V-ris Jaijongrak

Posted on

Setup AWS EKS with Karpenter with Terraform

As a speaker at AWS Community Day Thailand 2025, I would like to share the summary of my presentation in this blog.

The trend of micro-services has driven the development process and the CI/CD to an extent that the containers and CI/CD tools have become mainstream. The container orchestration becomes a necessity, then the Kubernetes project emerged and has taken the lead in the world of container orchestration.

This presentation aims to give the audience the first glance at the EKS (Elastic Kubernetes Service) managed by AWS. Setting it up with a careful attention on architecture for security (Private Networking) and Least Privilege IAM policies, Efficiency in cost and performance are the goal. Knowing the basics and doing them right is always a good first step.

In the demo session of this presentation, I shared a terraform template in GitHub repository that can be uses on an EC2 instance to initialize the private subnets, a single NAT gateway in the VPC as its infrastucture.
Note: the handout demo is giving a detailed in constructing the VPC components for self-explanatory and thought process, but alternatively the terraform AWS VPC module is more concise and should be considered.

Then, the demo proceeds on creating the EKS cluster, and provision the managed nodegroup and Karpenter nodepools for workload provisioning.

For anyone who would like to follow along with the slide you can find it with the following link:

presentation slide

Top comments (0)