Projected Volumes: Combine Secrets, ConfigMaps, and Tokens
Intermediate · 30 minutes · 4 tasks, checked automatically · 100 points
In this lab you will learn how to use Kubernetes **Projected Volumes** to mount multiple volume sources — a Secret, a ConfigMap, and a ServiceAccount token — into a single directory inside a Pod. Projected Volumes are a powerful pattern for delivering configuration, credentials, and identity to workloads in a unified, consistent way. You will create the supporting resources, build a Pod that uses a `projected` volume, and verify that all sources are accessible at runtime.
What you’ll learn
- Create a Namespace, Secret, ConfigMap, and dedicated ServiceAccount to serve as projected volume sources
- Deploy a Pod that uses a single projected volume to combine the Secret, ConfigMap, and a ServiceAccount token projection into one mount path
- Verify that all projected sources are readable inside the running container and understand their file layout
How this lab works
- Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Cluster: A real Kubernetes cluster on your computer (kind)
- Kubernetes: 1.34.8
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- A kind cluster created in the Kubernetes Playground
Topics: projected-volumes, secrets, configmaps, serviceaccount-tokens, volumes, storage, kubernetes, kind
Create a free account to start this lab.