AppArmor — Linux kernel module for process confinement.
1apiVersion: v12kind: Pod3metadata:4 name: apparmor-pod5 annotations:6 container.apparmor.security.beta.kubernetes.io/app: localhost/custom-profile7spec:8 containers:9 - name: app10 image: nginx:latest11 securityContext:12 allowPrivilegeEscalation: false
1aa-status2kubectl get pod apparmor-pod -o jsonpath='{.metadata.annotations}' | jq3dmesg | grep apparmor
Profiles: runtime/default, localhost/<profile>, unconfined.