How to Create EKS Cluster on AWS using Eksctl

Create EKS Cluster on AWS using Eksctl

This post will guide you how to create EKS Cluster on AWS using Eksctl Command, so that you can have your kubernetes environment on AWS Cloud. In the previous post, i have shown you the same kubernetes cluster creation on AWS using AWS Management Console.

If you are new to kubernetes and want to learn about kubernetes from basics, Refer the below links and also you can checkout all tutorial videos for free on YouTube and do subscribe for more free videos.

What is Kubernetes - Learn Kubernetes from Basics
How to Install Kubernetes on Linux (RedHat / CentOS)
How to Install Kubernetes On Ubuntu 16.04 LTS
How to Create Kubernetes Deployment, Services & Pods Using Kubectl
How to Create Kubernetes YAML for Deployment, Service & Pods
Kubernetes Volumes Explained with Examples
Kubernetes Persistent Volumes and Claims Explained

Also You can Watch this Entire Tutorial video with more examples on our YouTube Channel. Make use of it.

Lets get started.

How to Create EKS Cluster on AWS using Eksctl


Prerequisites:

  • AWS CLI Access with Admin Privileges.

  • One Instance (AWS Cli must have installed)

  • SSH Key (Optional)

Steps Involved:

Step 1: Install Eksctl and Kubectl utility

curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp

sudo mv /tmp/eksctl /usr/local/bin

eksctl version

curl -o kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.17.7/2020-07-08/bin/linux/amd64/kubectl

chmod +x ./kubectl

sudo mv ./kubectl /usr/local/bin

kubectl version --short --client

Step 2: Create EKS Cluster on AWS using Eksctl utility

eksctl create cluster

--name eks-cluster-demo

--version 1.15

--region us-west-1

--nodegroup-name eks-worker-nodes

--node-type t3.medium

--nodes 2

--nodes-min 2

--nodes-max 4

--ssh-access

--ssh-public-key selvakey.pub

--managed

Step 3: Deploying Demo Application.

Get our Demo Application from GitHub repository

git clone https://github.com/learnitguide/kubernetes-knote.git


Also You can Watch this Entire Tutorial video with more examples on our YouTube Channel. Make use of it.

Also refer below related articles and checkout all tutorial videos for free on youtube.

Post a Comment

0 Comments