Skip to main content
InterviewHubPRO
Section Overview
Q28

Question 28 of 50

Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)

56%
Kubernetes (K8s) (50 Qs)•Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)

Pod Security Standards (PSS) & Pod Security Admission (PSA).

senior LevelMost AskedCode ExampleSecurity & AuthKubernetes

In Simple Words: Replaces the deprecated PodSecurityPolicy (PSP) with native namespace-level enforcement. Three standard tiers:

  1. Privileged: Unrestricted; allows containers to run as root, mount host devices, and disable seccomp.
  2. Baseline: Minimally restrictive; prevents known privilege escalations.
  3. Restricted (Production Standard):
    • Must run as non-root user.
    • Must set allowPrivilegeEscalation: false.
    • Must drop all capabilities except NET_BIND_SERVICE.
    • Must mount root filesystem as read-only.
  • Configured via namespace labels:
    yaml
    apiVersion: v1
    kind: Namespace
    metadata:
      name: payments
      labels:
        pod-security.kubernetes.io/enforce: restricted