Member-only story

Deploy Kubernetes Pods on AWS Fargate: A Serverless EKS Setup

Nidhi
2 min readFeb 10, 2025

--

Introduction

Amazon EKS (Elastic Kubernetes Service) provides two options for running workloads: Managed Node Groups and AWS Fargate. While Managed Node Groups require EC2 instances, Fargate is a serverless compute engine that allows you to run Kubernetes pods without managing EC2 nodes.

In this guide, we will walk through the deployment of Kubernetes pods on AWS Fargate using EKS. We will create a Fargate Profile, configure necessary roles, and deploy an Nginx application on a Fargate-backed namespace.

Prerequisites

Before proceeding, ensure you have:

  • An Amazon EKS Cluster already set up.
  • Managed Node Group is also setup. If its not setup then you need to manually update the coredns configuration to run on Fargate Pods
  • AWS CLI, kubectl, and eksctl installed
  • IAM permissions to create Fargate profiles and roles.

Step 1: Create a Fargate Profile

Fargate profiles determine which pods should run on AWS Fargate based on namespace and labels. To create a profile:

--

--

Nidhi
Nidhi

Written by Nidhi

Devops Automation Enginneer

No responses yet