Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Installing and Testing the Components of a Kubernetes Cluster

In this lab, you will build a cluster from scratch, as well as test the components of the cluster (including the deployments, pods, port forwarding, and services) and execute a command from within a pod. In order to build the Kubernetes cluster, we need to install the container runtime, as well as kubeadm, kubectl, and kubelet. We will then initialize the cluster, add our CNI, and add the nodes to the cluster.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Apr 06, 2025
Duration
1h 15m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Install a Three Node Cluster
    • Get the gpg keys for containerd and Kubernetes and add it to your repository
    • Install containerd, kubelet, kubeadm, and kubectl
    • Initialize the cluster with the pod CIDR address 10.244.0.0/16
    • Setup the local kubeconfig
    • Apply the Calico CNI plugin
    • Join the worker nodes to the cluster
  2. Challenge

    Create a Deployment
    • On the master node, create a deployment named ngnix, using the nginx image
  3. Challenge

    Expose Port 80 on the Pod
    • On the master node, forward the container port 80 to 8081
    • Open a new shell to the Kubernetes master and curl port 8081 on localhost
  4. Challenge

    Get the NGINX version running on the pod
    • In the original master node terminal, run the nginx -v command from inside the pod
  5. Challenge

    Create a service, and verify connectivity on the node port
    • In the original master node terminal, run the commands to expose the deployment and create a NodePort service
    • Get the name of the node that the pod resides on
    • Run the curl command to that node, using the port from the service, and verify connectivity
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

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.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight