How does Pod Security Admission (PSA) work?
IntermediateConceptSecurity: RBAC, ServiceAccounts & Pod Security
Answer
A built-in admission controller enforces the Pod Security Standards per namespace using labels, with three modes: enforce (reject), audit (log) and warn (client warning).
kubectl label ns shop pod-security.kubernetes.io/enforce=restricted pod-security.kubernetes.io/warn=restricted
It replaced PodSecurityPolicy, removed in 1.25. It checks Pods (and warns on controllers), but is not customizable; use Kyverno or Gatekeeper for custom rules.