Deploying an EKS cluster
In this section of the chapter, we will be deploying an EKS cluster using a CLI utility called eksctl
. Then, we will access the endpoint using kubectl
, which is a command-line binary to access Kubernetes resources.
To create the EKS cluster, perform the following steps:
- We need to install the
ekctl
CLI binary by using the following commands:$ 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
- We will create an
ec2
key pair so that we can use that key pair to SSH into a worker Node if required:$ aws ec2 create-key-pair --key-name celestial --region us-east-1 > celestial.pem
- Once we have a key pair, we will create an EKS cluster using
eksctl
. For now, we are creating a public endpoint EKS cluster. We will create a private endpoint EKS cluster in the next chapter:$ eksctl create cluster ...