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.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- 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.- 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://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 enabled=1 gpgcheck=1 repo_gpgcheck=1 gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
- Next, install the three kubernetes programs.
- 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.
- 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.
- Check Your Kubernetes Installation
You should check that Kubernetes is installed and containerd is working by using the
kubeadm config images pull
command.