All languages

Kubernetes

You're viewing a free preview. Sign in free to read every script.

Why this exists securityContext: privileged: true, hostPID: true, a container that runs as root with every Linux capability — nothing in plain Kubernetes stops any of these by default. Pod Security Standards (PSS) are…

Pod Security Standards: Labeling Namespaces restricted/baseline/privileged

The three built-in Pod Security Standard levels, applied with nothing but namespace labels — no operator, no CRDs — and proven against a real cluster with four real Pods: one accepted everywhere, one refused only above baseline, one refused only by restricted with the full list of violations, and one properly hardened Pod that passes restricted admission and actually runs.

Sign in free to read this script, along with the rest of the library.

Sign in free