Interview Security & DevSecOps

What are Kubernetes Pod Security Standards (privileged, baseline, restricted)? [Advanced]

Answer

Kubernetes Pod Security Standards define three policy levels: privileged, baseline, and restricted. Privileged is highly permissive, baseline prevents known privilege escalation patterns while allowing common workloads, and restricted applies stronger hardening suitable for security-sensitive workloads.

Technical explanation

Pod Security Admission can enforce these standards at namespace level using labels for enforce, audit, and warn modes.

Baseline is often a practical minimum for general workloads.

Restricted requires controls such as non-root execution, seccomp, dropped capabilities, and no privilege escalation.

Hands-on example

Hands-on:

kubectl label ns prod pod-security.kubernetes.io/enforce=restricted

kubectl label ns prod pod-security.kubernetes.io/audit=restricted

kubectl label ns prod pod-security.kubernetes.io/warn=restricted

Then test a privileged pod and confirm the API server rejects it.

Preparing for an interview?

Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.

More Security & DevSecOps interview questions

← All Security & DevSecOps questions