- Lab
- A Cloud Guru
Install Kubernetes with containerd
In this lab, you will install Kubernetes and configure it to use containerd. You will be provided with one server. On this server, you will install and configure Kubernetes and configure it to use containerd for container management. You will not be required to create a cluster. Having the software installed and ready for use as a cluster controller will be sufficient.
Path Info
Table of Contents
-
Challenge
Log In to the Provided Server
Log in to the server as
cloud_user
with the provided password to ensure you can log in. When the fileSERVER-READY
is shown in the/home/cloud_user
folder, then you can follow along with the tasks. -
Challenge
Add the Kubernetes Repository and Install Kubernetes
-
Your task for this objective is to install the Kubernetes repository, and then install Kubernetes.
-
You will use whatever system commands are required.
-
The repository file should be called
/etc/yum.repos.d/kubernetes.repo
. -
The contents of the repo should be:
[kubernetes] name=Kubernetes baseurl=https://pkgs.k8s.io/core:/stable:/v1.30/rpm/ enabled=1 gpgcheck=1 gpgkey=https://pkgs.k8s.io/core:/stable:/v1.30/rpm/repodata/repomd.xml.key
-
Next, install the three kubernetes programs.
-
-
Challenge
Add the Repository for containerd, Replace the Configuration File, and Install It
-
Your task for this objective is to add the Docker repository for containerd. Then, install Jenkins.
-
You will use whatever system commands are required.
-
Access the containerd repo.
-
You should replace the
config.toml
file with a new default containerd configuration.
-
-
Challenge
Enable and Start containerd and kubelet
-
Using the required commands, enable and start containerd. Be sure to configure containerd to start automatically on a reboot.
-
Next, enable and start kubelet. Be sure to configure kubelet to start automatically on a reboot.
-
-
Challenge
Check Your Kubernetes Installation
You should check that Kubernetes is installed and containerd is working by using the
kubeadm config images pull
command.
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.