Create and Manage a Kubernetes Cluster from Scratch

Lab Steps

lock
Logging in to the Amazon Web Services Console
lock
Connecting to an EC2 Instance Using Amazon EC2 Instance Connect
lock
Installing kubeadm and Its Dependencies
lock
Initializing the Kubernetes Master Node
lock
Joining a Worker Node to the Kubernetes Cluster

Ready for the real environment experience?

DifficultyIntermediate
Time Limit1h
Students2064
Ratings
4.8/5
starstarstarstarstar-half

Description

You will create a Kubernetes cluster that adheres to best practices from scratch using the kubeadm cluster bootstrapping utility. Even if you intend to use fully-managed Kubernetes clusters, this lab provides you with a deeper understanding of Kubernetes clusters and helps you decide on the cluster configuration that is best for your requirements.

This lab is valuable to anyone working with Kubernetes and has been prepared with the topics described in the Certified Kubernetes Administrator (CKA) Exam Curriculum. Completion of the Lab will help you get hands-on experience, which is essential for passing the CKA exam.

Lab Objectives

Upon completion of this Lab, you will be able to:

  • Install kubeadm and its dependencies
  • Initialize a control-plane  node
  • Join a node to a cluster
  • Configure a network plugin 

Lab Prerequisites

You should be familiar with:

  • Working with Kubernetes to deploy applications
  • Working at the command line in Linux

The following Labs can be used to fulfill the prerequisites for this Lab: 

Updates

January 20th, 2023 - Resolved Container Runtime Interface (CRI) issue

November 4th, 2022 - Updated lab to use version 1.24.3

October 6th, 2022 - Updated instructions and screenshots due to updated packages

October 22nd, 2021 - Migrated lab to use EC2 Instance Connect

September 24th, 2021 - Highlighted master and worker node-specific instructions for clarity

August 28th, 2020 - Updated the SSH instructions to reflect the new EC2 user interface

June 30th, 2020 - Resolved an issue causing the Kubernetes package upgrade commands to fail

April 28, 2019 - Updated lab to use version 1.13 and upgrade to 1.14

January 10th, 2019 - Added a validation Lab Step to check the work you perform in the Lab

Environment before
PREVIEW
arrow_forward
Environment after
PREVIEW
About the Author
Students172496
Labs209
Courses9
Learning paths49

Logan has been involved in software development and research since 2007 and has been in the cloud since 2012. He is an AWS Certified DevOps Engineer - Professional, AWS Certified Solutions Architect - Professional, Microsoft Certified Azure Solutions Architect Expert, MCSE: Cloud Platform and Infrastructure, Google Cloud Certified Associate Cloud Engineer, Certified Kubernetes Security Specialist (CKS), Certified Kubernetes Administrator (CKA), Certified Kubernetes Application Developer (CKAD), and Certified OpenStack Administrator (COA). He earned his Ph.D. studying design automation and enjoys all things tech.