Overview
Lab details
- This lab walks you through the steps to create an EKS Cluster and understand each of its components.
- You will practice using the AWS Elastic Kubernetes Service cluster and install kubectl to get the cluster IP.
- Duration: 60 minutes
- AWS Region: US East (N. Virginia) us-east-1
Introduction
What is Amazon EKS?
- It is a managed container service for running and scaling Kubernetes applications.
-
Amazon EKS i.e. Elastic Kubernetes Service can be used in three ways:
- Deploy applications with Amazon EKS in the cloud: Using AWS Fargate or Amazon EC2
- Deploy applications with Amazon EKS anywhere: For your on-premise infrastructure
- Deploy applications with your own tools: Using Bare metal, virtual machines, and Amazon EC2 instances
- Since EKS is a managed service, it allows you to run Kubernetes on AWS without having to install Kubernetes.
- It provisions and scales control plane, API Servers, and backend persistence layers across multiple AZs for high availability and fault tolerance. Also, it automatically detects and replaces the unhealthy control plane nodes for patching.
- Amazon EKS is integrated with many AWS Services like ELB for load distribution, IAM for authentication, Amazon VPC for isolation and CloudTrail for logging.
Architecture diagram

Task details
- Sign into AWS Management Console.
- Create an EKS Cluster
- Create an Environment in CloudShell.
- Install kubectl on AWS CloudShell.
- Configure your AWS CloudShell to communicate with your cluster.
- Validation of the lab
- Deleting AWS Resources
Launching the lab environment
- To launch the lab environment, Click on the Launch lab button.
- Please wait until the cloud environment is provisioned. It will take less than a minute to provision.
- Once the Lab is started, you will be provided with IAM user name, Password, Access Key, and Secret Access Key.
Lab guide
Lab steps
Task 1: Sign in to AWS Management Console
- Click on the Open console button, and you will get redirected to AWS Console in a new browser tab.
-
On the AWS sign-in page,
- Leave the Account ID as default. Never edit/remove the 12 digit Account ID present in the AWS Console. otherwise, you cannot proceed with the lab.
- Now copy your User Name and Password in the Lab Console to the IAM Username and Password in AWS Console and click on the Sign in button.
- Once Signed In to the AWS Management Console, Make the default AWS Region as US East (N. Virginia) us-east-1.
If you face any issues, please go through FAQs and Troubleshooting.
#### Task 2: Create an EKS Cluster
- Make sure you are in the N.Virginia Region.
- Navigate to Elastic Kubernetes Service by clicking on the Services menu available under the Containers section.
-
Click on Create cluster button.

- Enter the cluster name as a whiz
-
Keep the Kubernetes version as default

- Cluster IAM role: Choose the existing IAM role
-
Note : Ignore below notification messages, and follow further steps.

- Node IAM role: Choose the existing IAM role
- VPC: Select the Default VPC.
-
Subnets: Select the subnets for us-east-1a, us-east-1b, us-east-1c and us-east-1 and remove the subnets us-east-1e and us-east-1f.

- Click on the Create button. Note: Cluster creation will take about 10-15 minutes.
-
Cluster is created now.

Task 3 : Create an Environment in CloudShell
- Make sure you are in the N.Virginia Region.
-
Click on Arrow icon (Cloud Shell) on the top AWS menu bar.

-
Once the environment is created, you are ready to use the terminal.

Task 4 : Install kubectl on AWS CloudShell
-
Once the environment is ready run all these commands the terminal, Download the Amazon EKS vended kubectl binary for your cluster’s Kubernetes version from Amazon S3. To do so, un the following command:
-
Apply execute permissions to the binary.
-
Copy the binary to a folder in your PATH. If you have already installed a version of kubectl, then we recommend creating a HOME/bin comes first in your $PATH.
-
After you install kubectl, you can verify its version with the following command:
Task 5 : Configure your AWS CloudShell to communicate with your cluster
- Once the environment is ready on CloudShell, you create a kubeconfig file for your cluster. The settings in this file enable the kubectl CLI to communicate with your cluster.
-
To create a kubeconfig file, run the following command:
- Note: If your cluster name is not whiz, Update your cluster name in the above command.
-
Test your configuration, with the following command:

Task 6: Validation Test
- Once the lab steps are completed, please click on the Check my work button on the right side panel.
- This will validate the resources in the AWS account and displays whether you have completed this lab successfully or not.
- Sample output :

Task 7: Delete AWS Resources
Deleting EKS cluster
- Navigate to Elastic Kubernetes Service by clicking on the Services menu available under the Containers section..
- On the left sidebar, click on the Clusters option in the left panel.
-
whiz EKS cluster will be listed here.

-
To delete the cluster, perform the following task:
- Select the present cluster,
-
Click on the Delete button.

-
Confirm the deletion by typing the cluster name whiz in the required field, and click on the Delete button.

- The cluster will be deleted within 10-15 minutes.
Completion and conclusion
- You have successfully created and launched Amazon EKS Cluster.
- You have successfully installed Kubectl in AWS Cloudshell.
- You have successfully configured AWS Cloudshell to communicate with AWS EKS Cluster.
End lab
- Sign out of AWS Account.
- You have successfully completed the lab.
- Once you have completed the steps, click on End lab in the IP Lab Portal.
What gets checked
When you press Check my work, the platform verifies each of these:- Check EKS Cluster Exists — Check whether an EKS cluster is created
- Check EKS Cluster Status Active — Check EKS cluster is in ACTIVE state