AppArmor is a Linux kernel security module that helps confine programs to a limited set of resources to reduce an application’s attack surface. AppArmor allows for configurable profiles that permit the access needed by an application or container. AppArmor has been included in the mainline Linux kernel since version 2.6.36, is shipped with many Linux distributions, and Kubernetes added support for AppArmor in v1.4.
This lab focuses on the AppArmor profiles. AppArmor is highlighted as a reference tool in the Certified Kubernetes Security Specialist (CKS) exam. You will learn how to create an AppArmor profile and run a with a container within Kubernetes that has an AppArmor profile in this lab.
Upon completion of this lab, you will be able to:
Familiarity with the following will be beneficial but is not required:
kubectl
output formattingThe following content can be used to fulfill the prerequisites:
July 10th, 2024 - Updated cluster to Kubernetes 1.30