Interview Prep/Kubernetes/Security: RBAC, ServiceAccounts & Pod Security

How are Pod and container capabilities, seccomp and AppArmor combined for defense in depth?

AdvancedConceptSecurity: RBAC, ServiceAccounts & Pod Security
Answer

Drop all Linux capabilities and add back only needed ones; use seccomp RuntimeDefault (blocks about 40+ risky syscalls) or a custom profile; apply AppArmor or SELinux profiles; run as non-root with a read-only root filesystem; and consider sandboxed runtimes (gVisor, Kata) via RuntimeClass for untrusted code. Restricted PSS requires most of these.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security: RBAC, ServiceAccounts & Pod Security