AWS- EKS Chapter-1

Create, Delete -> EKS Cluster & Node Groups

Step-01: Create EKS Cluster using eksctl

  • It will take 15 to 20 minutes to create the Cluster Control Plane

Step-02: Create & Associate IAM OIDC Provider for our EKS Cluster

  • To enable and use AWS IAM roles for Kubernetes service accounts on our EKS cluster, we must create & associate OIDC identity providers.
  • To do so using we can use the below command.
  • Use the latest eksctl version (as of today the latest version is )

Step-03: Create EC2 Keypair

  • Create a new EC2 Keypair with the name as
  • This keypair we will use when creating the EKS NodeGroup.
  • This will help us to log in to the EKS Worker Nodes using Terminal.

Step-04: Create Node Group with additional Add-Ons in Public Subnets

  • These add-ons will automatically create the respective IAM policies for us within our Node Group role.

Step-05: Verify Cluster & Nodes

Verify NodeGroup subnets to confirm EC2 Instances are in Public Subnet

  • Verify the node group subnet to ensure it created in public subnets
  • Go to Services -> EKS -> eksdemo -> eksdemo1-ng1-public
  • Click on the Associated subnet in the Details tab
  • Click on Route Table Tab.
  • We should see that internet route via Internet Gateway ( -> igw-xxxxxxxx)

Verify Cluster, NodeGroup in EKS Management Console

  • Go to Services -> Elastic Kubernetes Service -> eksdemo1

List Worker Nodes

Verify Worker Node IAM Role and list of Policies

  • Go to Services -> EC2 -> Worker Nodes
  • Click on IAM Role associated with EC2 Worker Nodes

Verify Security Group Associated to Worker Nodes

  • Go to Services -> EC2 -> Worker Nodes
  • Click on Security Groups associated with EC2 Instance which contains in the name.

Verify CloudFormation Stacks

  • Verify Control Plane Stack & Events
  • Verify NodeGroup Stack & Events

Delete EKS Cluster & Node Groups

Step-05: Delete Node Group

  • We can delete a node group separately using below

Step-06: Delete Cluster

  • We can delete clusters using



DevOps/Cloud | 2x AWS Certified | Terraform | Gitlab

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store