EKS Workshop - Cluster Setup and Configuration
Table of contents
- Overview
- Prerequisites
- Step 1: Create EKS Cluster
- Step 2: Verify Cluster
- Step 3: Deploy Sample Application
- Summary
Overview
This workshop guides you through setting up an Amazon EKS cluster from scratch.
Tags:
ContainerAWS-Core
Prerequisites
- AWS Account with Administrator access
- AWS CLI v2 installed
kubectlinstalledeksctlinstalled
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
Readystate 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