Managing Container Storage with Kubernetes Volumes

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Kubernetes volumes offer a simple way to mount external storage to containers. This lab will test your knowledge of volumes as you provide storage to some containers according to a provided specification. This will allow you to practice what you know about using Kubernetes volumes.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a Pod That Outputs Data to the Host Using a Volume

One of the applications under development will be a maintenance script that needs to write data to the host’s file system.

Create a Pod that outputs some data every 5 seconds to the host’s disk in the directory /var/data.

Create a Multi-Container Pod That Shares Data Between Containers Using a Volume

Another application component includes two pieces of software that need to collaborate using shared data.

Create a multi-container Pod with a volume mounted to both containers.

Additional Resources

Your company, BeeBox, is developing some applications that have storage needs beyond the short-lived storage of the container file system. One component, a simple maintenance script, needs to be able to interact with a directory on the host file system. Another needs to be able to share data between two containers in the same Pod.

Your task is to build a simple architecture to demonstrate how these tasks can be accomplished with Kubernetes volumes. Create Pods that meet the specified criteria.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?