Create EKS Cluster
Create EKS Cluster
- To create an EKS cluster, we will first need to create an SSH key to be able to access the EC2 Nodes in the Cluster when needed:
aws ec2 create-key-pair --key-name k8s-demo --query 'KeyMaterial' --output text> k8s-demo.pem

- In the AWS Console interface
- Search for EC2
- Select EC2

- In the EC2 interface
- Select Key Pairs
- View the newly created Key Pair

- To create the EKS Cluster and EC2 Nodes we use the following command:
eksctl create cluster --name k8s-demo --region ap-southeast-1 --nodegroup-name k8s-demo --nodes 2 --ssh-access --ssh-public-key k8s-demo --managed
- When you run this command, eksctl will use AWS CloudFormation to create the necessary infrastructure and setup the Master Node (Control Plane).

- The interface after creating the EKS Cluster.

It takes about 15 minutes to complete the EKS Cluster initialization process