Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Setting up a Kubernetes Cluster with containerd

containerd works well for running single containers or small groups of containers on a single host. But what if you have more than a few containers, or want those containers to be spread across multiple servers, or even made highly available? For these scenarios, you'll need a container orchestrator. Kubernetes is a popular container orchestration framework that easily works with containerd. In this lab, you'll learn to set up a Kubernetes cluster with containerd.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Intermediate
Duration
Clock icon 1h 0m
Published
Clock icon Nov 07, 2018

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    Install Kubernetes

    Inspect the containerd environment before you install Kubernetes, both to make sure it is installed, and to show what is currently running for comparison later.

    1. Add the Kubernetes yum repo to every host.
    2. Set SELinux to permissive mode.
    3. Install the Kubernetes utilities: kubelet, kubeadm, and kubectl.
    4. Enable the kubelet service.
  2. Challenge

    Set up the Kubernetes Cluster

    Inspect the containerd environment again. See what has changed.

    1. Create a cluster on the Controller node.
    2. Join the cluster on the Worker nodes.
    3. Add a network fabric to the cluster.
  3. Challenge

    Test the Cluster

    Inspect the containerd environment again. What is running now that wasn't before?

    1. Create an Nginx pod and run it on the cluster.
    2. Create a NodePort service for the Nginx pod.
    3. View the Nginx pod in a browser.

    Look at the containerd environment one more time. Notice that even though you started the pod with Kubernetes, it is running the containers using containerd. The worker node where the pod is running will have a container with a name that includes the name of your pod.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

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.

Start learning by doing today

View Plans