Hamburger Icon
  • Labs icon Lab
  • Core Tech
Google Cloud Platform icon
Labs

Configure a Multi-container Pod with Kubernetes

In this lab, you’ll practice creating a multi container pod: one container running an HTTP server and another container logging the requests. You will set up the collaboration between both the containers in the Pod. When you have finished the challenges, you’ll have a multi container pod set up with two containers having a shared volume. You will be able to access the HTTP server and verify that the collaboration is set up between both the containers.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 1h 10m
Published
Clock icon Jan 23, 2025

Contact sales

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

Table of Contents

  1. Challenge

    Getting Started in the Lab Environment

    Here are the initial instructions and explanation of the lab environment. Read this while your environment is busy creating itself from nothing. Yes, this violates physics; we know. How fun!

  2. Challenge

    Create a Multi-Container YAML Manifest for a Pod

    In this challenge, you will be creating a YAML manifest for a Pod. The YAML manifest will contain two containers out of which the first container will be an HTTP server, and another container will be logging requests. For an HTTP server, you will be using nginx server.

  3. Challenge

    Deploy the Pod

    In this challenge, you will deploy the pod in the kubernetes cluster. You will make sure that the pod is in running status. You will also verify that both the containers are created successfully with the defined resources.

  4. Challenge

    Create the Shared Resource

    In this challenge, you will create a shared volume between both the containers running in the pod.

  5. Challenge

    Access the HTTP Server and Setup the Multi Collaboration between the Containers in the Pod

    In this challenge, you will set up the multi collaboration between the containers in the Pod. You will redirect the output from container 1 to container 2 and verify the logs for the same.

  6. Challenge

    The Last Challenge

Software Engineer, AWS DevOps Consultant and Pluralsight Author

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.