Building and Configuring a Kubernetes Cluster with kubeadm

30 minutes
  • 5 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 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.

Install the Kubernetes Packages (`kubeadm`, `kubelet`, and `kubectl`)

On all three nodes, install kubeadm, kubelet, and kubectl. Don’t forget to disable Swap, as doing so is a requirement for kubelet to work properly.

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.
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 all three nodes are successfully registered and in the Ready state.

Additional Resources

You have recently gotten a new job at BeeBox, a subscription service that provides weekly shipments of bees to customers. The company has several software systems, such as a website, a mobile app, and backend processing systems.

As these systems grow in complexity, BeeBox would like to begin using Kubernetes to manage their software in containers. They will need a Kubernetes cluster in order to get started.

  • You have been given three Linux servers. Your task is to use kubeadm to build a Kubernetes cluster on these servers.
  • Install Kubernetes version 1.19.1.
  • The cluster should have one control plane node and two worker nodes.
  • On the control plane node server, there is a kubeadm config file located at /home/cloud_user/kubeadm-config.yml. Supply this configuration file to kubeadm when initializing the cluster.
  • Use the Calico networking add-on to provide networking for the cluster.
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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?