- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Building and Configuring a Kubernetes Cluster with kubeadm
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.

Lab Info
Table of Contents
-
Challenge
Install the Container Runtime (Docker)
Log in to all three servers. Get Docker installed and running. For the purposes of this lab, you can use Docker version
19.03.12
. -
Challenge
Install the Kubernetes Packages (`kubeadm`, `kubelet`, and `kubectl`)
On all three nodes, install
kubeadm
,kubelet
, andkubectl
. Don't forget to disable Swap, as doing so is a requirement forkubelet
to work properly. -
Challenge
Initialize the Cluster
Initialize the Kubernetes cluster on the control plane node. Be sure to:
- Supply the provided
kubeadm
configuration file located at~/kubeadm-config.yml
. - Instruct
kubeadm
to ignore any preflight errors that may arise.
- Supply the provided
-
Challenge
Install the Calico Network Add-On
Install the Calico network add-on in your cluster.
-
Challenge
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 all three nodes are successfully registered and in theReady
state.
About the author
Real skill practice before real-world application
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.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.