Deploying a Kubernetes Cluster Using Elastic Kubernetes Service

1 hour
  • 3 Learning Objectives

About this Hands-on Lab

In this lab, we will be creating a Kubernetes cluster using the Elastic Kubernetes Service (EKS). We will create the cluster through the Cloud Shell!

You will learn how to easily create a cluster with just a few commands.

Understanding how to create your cluster through the command line will give you the advantage of having granular control over your cluster and understanding exactly what’s going on under the hood.

For this lab, you should have a basic understanding of Kubernetes. This way, you have the basic concepts to understand what we will be achieving in this lab!

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an EKS Cluster in the us-east-1 Region

Create a multi-node cluster in the us-east-1 Region.

Deploy a Test Application to Mimic the Application

Using the editor, paste the application yaml template to deploy the app.

Use the DNS Name of the Load Balancer to Test the Cluster

Use the DNS name of the load balancer service to test to see if the app works!

Additional Resources

As a cloud engineer for a tech startup, you’ve been tasked with setting up a new Elastic Kubernetes Service (EKS) cluster to host an application. This is critical for the company’s operations, so it's important that the application you deploy runs correctly.

  • Create an EKS cluster in the us-east-1 Region.
  • Deploy a test application to mimic the application.
  • Configure autoscaling to a max of four nodes.
  • Test the cluster to see if what you created works!

Here is the link to the repo:

https://github.com/ACloudGuru-Resources/Course_EKS-Basics

Here are commands you will use.

Download AWS CLI2:

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"

Download kubectl:

curl -O https://s3.us-west-2.amazonaws.com/amazon-eks/1.25.6/2023-01-30/bin/linux/amd64/kubectl

Create the directory:

mkdir -p $HOME/bin && cp ./kubectl $HOME/bin/kubectl && export PATH=$PATH:$HOME/bin

Download EKSCTL:

curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp

Create the cluster:

eksctl create cluster --name myeks --region us-east-1 --zones=us-east-1a,us-east-1b --nodegroup-name eks-workers --node-type t3.medium --nodes 2 --nodes-min 2 --nodes-max 4 --managed

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?