Skip to content

explicit-logic/eks-module-11.3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Module 11 - Kubernetes on AWS - EKS

This repository contains a demo project created as part of my DevOps studies in the TechWorld with Nana – DevOps Bootcamp.

Demo Project: Create EKS cluster with eksctl

Technologies used: Kubernetes, AWS EKS, Eksctl, Linux

Project Description:

  • Create EKS cluster using eksctl tool that reduces the manual effort of creating an EKS cluster

Prerequisites

1. Install eksctl

Official repository: eksctl-io/eksctl

Linux / macOS:

# Set architecture: amd64, arm64, armv6, or armv7
ARCH=arm64
PLATFORM=$(uname -s)_$ARCH

curl -sLO "https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_$PLATFORM.tar.gz"

# (Optional) Verify checksum
curl -sL "https://github.com/eksctl-io/eksctl/releases/latest/download/eksctl_checksums.txt" | grep $PLATFORM | sha256sum --check

tar -xzf eksctl_$PLATFORM.tar.gz -C /tmp && rm eksctl_$PLATFORM.tar.gz
sudo install -m 0755 /tmp/eksctl /usr/local/bin && rm /tmp/eksctl

Verify the installation:

eksctl version

2. Configure AWS credentials

Ensure your AWS CLI profile is set up and active:

aws configure list --profile admin
export AWS_PROFILE=admin

Create EKS Cluster

Option A: Using a cluster config file (recommended)

This approach uses cluster.yaml for a declarative, reproducible setup.

Validate the configuration before applying:

eksctl create cluster -f cluster.yaml --dry-run

Create the cluster:

eksctl create cluster -f cluster.yaml
Screenshots

Cluster creation demo

VPC created by eksctl

Subnets created by eksctl

EKS cluster in AWS console

Option B: Using CLI flags

Create a cluster entirely via command-line arguments:

eksctl create cluster \
  --name demo-cluster \
  --version 1.35 \
  --region eu-central-1 \
  --nodegroup-name demo-nodes \
  --node-type t2.micro \
  --nodes 2 \
  --nodes-min 1 \
  --nodes-max 3 \
  --profile admin
Flag Description
--version 1.35 Kubernetes version
--node-type t2.micro EC2 instance type for worker nodes
--nodes 2 Desired number of nodes
--nodes-min/max Auto-scaling range

About

Create EKS cluster with eksctl

Topics

Resources

Stars

Watchers

Forks

Contributors