PodSecurityPolicy (PSP) is a deprecated Kubernetes API resource that enforced security constraints on deployed Pods. PSPs were intended to restrict dangerous configurations, including privileged containers and root execution. section 13.3.2
Treat PSPs as a legacy control with significant operational limitations:
- Bindings depend on the Pod’s ServiceAccount or the submitting user, making policy behavior difficult to troubleshoot. section 13.3.2
- PSPs cannot restrict the type of PersistentVolumeClaim, allowing a user to create a claim using HostPath. section 13.3.2
- Fail-closed behavior requires every policy to exist before enabling PSPs across a cluster, preventing gradual rollout. section 13.3.2
Migration direction
Replace PSP-based security mechanisms with Gatekeeper policies; the Gatekeeper project provides policies designed specifically to replace PSPs. section 13.4.3
