Building a Kubernetes 1.24 Cluster with kubeadm

1.25 hours
  • 4 Learning Objectives

About this Hands-on Lab

This lab will allow you to practice the process of building a new Kubernetes cluster. You will be given a set of Linux servers, and you will have the opportunity to turn these servers into a functioning Kubernetes cluster. This will help you build the skills necessary to create your own Kubernetes clusters in the real world.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install Packages
  • Log into all three servers.
  • Get containerd installed and running.
  • Install the Kubernetes packages (kubeadm, kubelet, and kubectl).
Initialize the Cluster
  • Initialize the Kubernetes cluster on the control plane node using kubeadm.
Install the Calico Network Add-On
  • Install the Calico network add-on in your cluster.
Join the Worker Nodes to the Cluster
  • Join the two worker node servers to the cluster.
  • Use kubectl get nodes on the control plane node to verify that all three nodes are successfully registered and in the READY state.

Additional Resources

Your company wants to transition to a Kubernetes-based infrastructure for running their containerized applications. In order to do that, they will need a basic Kubernetes cluster to get started.

You have been provided with three servers. Build a simple Kubernetes cluster with one control plane node and two worker nodes.

  • Install and use kubeadm to build a Kubernetes cluster on these servers.
  • Install Kubernetes version 1.24.0.
  • Use containerd for your container runtime.
  • The cluster should have one control plane node and two worker nodes.
  • Use the Calico networking add-on to provide networking for the cluster.

Note: If you would like the lab setup to be the same as the CKA "Building a Kubernetes Cluster" lesson, you can also set the hostnames for each node with command sudo hostnamectl set-hostname [k8s-control | k8s-worker1 | k8s-worker2]. You would then place the three entries in each node's hosts file with sudo vi /etc/hosts. The hosts file should contain the private IP of each node along with its corresponding hostname.

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?