This lab provides practice scenarios to help prepare you for the Certified Kubernetes Security Specialist (CKS) 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 CKS exam. Good luck!
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Enforce an AppArmor Profile on the Worker Node
On the worker node, there is an AppArmor profile file located at
/home/cloud_user/k8s-deny-write
.Enforce the profile so that it can be applied to containers.
Note: Feel free to consult the AppArmor documentation.
- Apply the Profile to a Container
On the CLI server, there is a Pod manifest at
/home/cloud_user/chewbacca.yml
.- Edit the manifest so that the AppArmor profile will be applied to the Pod’s container.
- Create the Pod.