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

Deploying and Configuring Apps in Kubernetes

Kubernetes is a great tool for running applications. In this lab, you will have a chance to get hands-on with the process of deploying and configuring Kubernetes applications all the way from code to K8s. You will create a Git repository for your code, build a container image for the application using Docker, and run and configure the application in a Kubernetes cluster.

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

Contact sales

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

    Create a Codebase Using Git

    Clone the application GitHub repository to the lab server under /home/cloud_user.

    The repository is located at https://github.com/linuxacademy/content-k8sapps-is-it-pirate-day.

    Optionally, you can create your own fork in GitHub (requires a GitHub account) and clone that instead.

  2. Challenge

    Build a Docker Image for the App with All Needed Dependencies

    The source code already includes a Dockerfile, but it is not configured to include the necessary serve package that will be used to serve the static app content.

    Edit the Dockerfile to run the command yarn global add serve during the image build process in order to install this package within the resulting image.

    Then, build a Docker image for the app called <YOUR_DOCKER_HUB_USERNAME>/pirate-day:0.0.1. Push the image to Docker Hub.

  3. Challenge

    Deploy the Application to Kubernetes with the Necessary Config

    Create a ConfigMap called pirate-config with the following data:

    data:
      .env: |
        REACT_APP_PIRATE_MESSAGE='No!'
    

    Feel free to customize the message value if you wish.

    Create a Pod called pirate-day to run the container image for the app.

    • Attach the label app=pirate-day to the Pod.
    • Mount the pirate-config ConfigMap data to a file within the container at /usr/src/app/.env. This should make the app display the message defined in the ConfigMap data.

    There is a pre-existing Service that will allow you to access the app for testing. Using the Public IP address of the K8s Server, you should be able to access the app in a browser at http://<K8S_SERVER_PUBLIC_IP>:30080 for testing.

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