- Lab
- A Cloud Guru
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.
Path 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.
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.