EKS Workshop - Cluster Setup and Configuration

Table of contents

  1. Overview
  2. Prerequisites
  3. Step 1: Create EKS Cluster
  4. Step 2: Verify Cluster
  5. Step 3: Deploy Sample Application
  6. Summary

Overview

This workshop guides you through setting up an Amazon EKS cluster from scratch.

Tags: Container AWS-Core

Prerequisites

Step 1: Create EKS Cluster

eksctl create cluster \
  --name my-eks-cluster \
  --region ap-northeast-2 \
  --version 1.31 \
  --nodegroup-name standard-workers \
  --node-type t3.medium \
  --nodes 3

Step 2: Verify Cluster

kubectl get nodes
kubectl get pods -A

Ensure all nodes are in Ready state before proceeding.

Step 3: Deploy Sample Application

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:latest
        ports:
        - containerPort: 80
kubectl apply -f nginx-deployment.yaml
kubectl get pods -w

Summary

You now have a running EKS cluster with a sample application deployed.

Next workshop: Configuring ALB Ingress Controller