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.