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

Use kubectl with a Kubernetes Cluster

In this hands-on lab, you are provided two servers with Kubernetes and containerd installed and configured. You will need to add a Node to the cluster using the information provided and then you will need to create a deployment file. This file will start three replicas of an Nginx image. You will use the relevant commands to scale up the number of replicas to five and then back down to one.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Beginner
Last updated
Sep 18, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. 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 file SERVER-READY is visible in the /home/cloud_user folder, then you can follow along with the objectives.

  2. Challenge

    Add Your Worker Node to the Cluster

    Add your worker Node knode1 to the cluster using the information provided in the cluster-info text file, and check if it is ready for use.

  3. Challenge

    Create a Deployment File That Runs the Nginx Image

    You will create a deployment file that runs the Nginx image; use port 8080 for its output.

    Call the file deployment-nginx.yml, and start the three replicas.

  4. Challenge

    Use the kubectl Command and Run the Deployment

    Use kubectl to create the deployment, and check if the three replicas have started.

  5. Challenge

    Scale the Number of Replicas

    Scale the number of replicas using the relevant commands: firstly to five replicas then down to one replica.

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