- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Certified Kubernetes Administrator (CKA) Practice Exam: Part 7
This lab provides practice scenarios to help prepare you for the Certified Kubernetes Administrator (CKA) Exam. You will be presented with tasks to complete as well as server(s) and/or an existing Kubernetes cluster to complete them in. You will need to use your knowledge of Kubernetes to successfully complete the provided tasks, much like you would on the real CKA exam. Good luck!

Lab Info
Table of Contents
-
Challenge
Create a PersistentVolume
- Create a PersistentVolume called
host-storage-pv
with a storage capacity of1Gi
in theacgk8s
context. Configure this PersistentVolume so that volumes that use it can be expanded in the future.Note: This may require you to create additional objects.
- Configure the PersistentVolume to use a hostPath for storage located at
/etc/data
. - Configure the PersistentVolume so that it can be automatically reused if all claims are deleted.
- Create a PersistentVolume called
-
Challenge
Create a Pod That Uses the PersistentVolume for Storage
- Create a Pod called
pv-pod
in theauth
Namespace. Configure this Pod so that it uses thehost-storage-pv
PersistentVolume for storage.Note: This will require the creation of a PersistentVolumeClaim in the same namespace as the Pod.
- Name the PersistentVolumeClaim
host-storage-pvc
. Give your PersistentVolumeClaim a size of100Mi
. - Use the
busybox
image for this Pod, and configure it to run the commandsh -c while true; do echo success > /output/output.log; sleep 5; done
. - Mount the volume that uses the PersistentVolume for storage, such that the
/output
directory ultimately writes to the PersistentVolume.
- Create a Pod called
-
Challenge
Expand the PersistentVolumeClaim
Expand the PersistentVolumeClaim so that the requested storage size is
200Mi
.
About the author
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.