AWS-EKS CREATION

Ammar Suhail
4 min readJul 6, 2023

--

AWS-EKS creation has never been so easy

Introduction: In this tutorial, we will walk through the process of setting up an Amazon Elastic Kubernetes Service (EKS) cluster. EKS is a managed Kubernetes service that makes it easy to deploy, manage, and scale containerized applications. By following these steps, you will have a fully functional EKS cluster ready to deploy your applications.

Step 1: Prerequisites Before we begin, make sure you have the following prerequisites in place:

  1. An AWS account with appropriate permissions to create resources.
  2. The AWS Command Line Interface (CLI) installed and configured on your local machine.
  3. Kubernetes command-line tool (kubectl) installed.
  4. An IAM role with the necessary permissions for EKS cluster creation.

Step 2: Create an EKS Cluster

  1. Open the AWS Management Console and navigate to the EKS service.
  2. Click on “Create cluster” and choose the “Quick create” option.
  3. Configure the cluster settings, including the cluster name, Kubernetes version, and networking options.
  4. Select the desired compute options, such as instance types, desired capacity, and scaling options.
  5. Review the configuration and click “Create” to initiate the cluster creation process.
  6. Wait for the cluster creation to complete. This may take several minutes.

Step 3: Configure kubectl for EKS

  1. Install the AWS IAM Authenticator to allow kubectl to authenticate with the EKS cluster.
  2. Retrieve the necessary authentication token by running the following AWS CLI command: aws eks update-kubeconfig --name <cluster-name>.
  3. Verify the configuration by running kubectl get pods to list the running pods in your cluster.

Step 4: Access the EKS Cluster

  1. Create an Amazon Virtual Private Cloud (VPC) and configure the necessary subnets and security groups.
  2. Update the cluster security group to allow inbound and outbound traffic.
  3. Set up the appropriate ingress and egress rules to allow access to your applications.
  4. Optionally, configure a bastion host or VPN connection for secure remote access.

Step 5: Deploy and Manage Applications

  1. Build and containerize your application using Docker or another containerization tool.
  2. Push the container image to a container registry, such as Amazon Elastic Container Registry (ECR).
  3. Define your Kubernetes deployment manifests, including services, deployments, and pods.
Here ****** should be replaced with AWS Account ID & config & credentials files should be present on your machine
under modules/ vpc
make a file node.tf
Assigning policies here
Here our EKS is ready !!!!!

--

--

Ammar Suhail
Ammar Suhail

Written by Ammar Suhail

DevOps/ Cloud Engineer/AWS Certified/ CKAD Certified/ Terraform Certified/M.S Electrical & Computer Engineering (USA)

No responses yet