Pod Security Admission
Refer to the official Kubernetes documentation: Pod Security Admission
Pod Security Admission (PSA) is a Kubernetes admission controller that enforces security policies at the namespace level by validating Pod specifications against predefined standards.
TOC
Security Modes
PSA defines three modes to control how policy violations are handled:
Key Notes:
- Enforce acts on Pods only (e.g., rejects Pods but allows non-Pod resources like Deployments).
- Audit and Warn apply to both Pods and their controllers (e.g., Deployments).
Security Standards
PSA defines three security standards to restrict Pod privileges:
Configuration
Namespace Labels
Apply labels to namespaces to define PSA policies.
YAML file example
CLI command
Exemptions
Exempt specific users, namespaces, or runtime classes from PSA checks.
Example Configuration: