- Lab
- A Cloud Guru
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!
Path 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
.
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.