DEV Community

Catherine John
Catherine John

Posted on

Provision Amazon EKS cluster with EKSCTL

In this article, we are going to spain up an eks with Ngnix deploy.
install eksctl

Log on to AWS Console. Click on IAM, then Roles, and click Create Role.

install AWS cli
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

Confirm your version
aws --version

Install kubectl on Linux
Kubernetes 1.23
curl -o kubectl https://s3.us-west-2.amazonaws.com/amazon-eks/1.23.7/2022-06-29/bin/linux/amd64/kubectl
Give execute command to the binary
chmod +x ./kubectl
Copy the binary to a folder in your PATH
mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$PATH:$HOME/bin
Confirm your version
kubectl version --short --client

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

Move the extracted binary to /usr/local/bin.

sudo mv /tmp/eksctl /usr/local/bin
Confirm your installation version
eksctl version

Set up your permission
We will be setting up our I AM permission

Create your Amazon EKS cluster and nodes
eksctl create cluster --version=1.23 --name=K8cluster --nodes=3 --managed --region=us-east-1 --node-type t3.medium --asg-access

N.B Creating of cluster take up to 15mins, once this is successfully created you will see the below
[✓] EKS cluster "my-cluster" in "region-code" region is ready

Top comments (0)