← All notes

Kubernetes AppArmor: profiles on pods and containers

Answer: AppArmor profiles can be set at the pod level or at container level. A container profile takes precedence over the pod profile. To see loaded profiles on a node, inspect /sys/kernel/security/apparmor/profiles.

Notes

Profiles can be loaded through custom infrastructure or tools such as the Kubernetes Security Profiles Operator. The tutorial no longer lets you toggle the associated feature gate; that gate has been removed.

Reference list

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Restrict a Container with AppArmor; Kubernetes website, apparmor.md. CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Restrict a Container with AppArmor; Kubernetes website, apparmor.md. CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors.

Cite this

Permanent ID: iil:note:r9nr6e1s

iinventedlight. 2026. "Kubernetes AppArmor: profiles on pods and containers." iinventedlight Library, iil:note:r9nr6e1s, version of 2026-11-18. https://iinventedlight.com/library/notes/kubernetes-apparmor/. License: CC-BY-4.0.

@misc{iil_note_r9nr6e1s,
  author = {{iinventedlight}},
  title = {{Kubernetes AppArmor: profiles on pods and containers}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/kubernetes-apparmor/},
  note = {Permanent ID iil:note:r9nr6e1s. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/kubernetes-apparmor.md.