How to Create Kubernetes Cluster on AWS
Install eksctl - official CLI for amazon eks - Documentation Here
Bash
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
Create Cluster
Bash
eksctl create cluster --name cluster-name --version 1.21 --region eu-west-1 --without-nodegroup --vpc-cidr 172.25.0.0/16 --ssh-access --ssh-public-key ssh-key-name
Create Nodes (workers)
Bash
eksctl create nodegroup --cluster=cluster-name --name=workers --ssh-public-key=ssh-key-name --instance-types=t3.medium