Enforce Kubernetes Pod Security with Gradual Admission
8 steps · about 2 h 52 min · Intermediate
- Place pod controls in an application security baseline (doc, Kubernetes Documentation, 22 min)
The checklist connects pod restrictions to identities, images, secrets and network controls that admission alone cannot cover.
- Understand admission modes and labels (doc, Kubernetes Documentation, 18 min)
Enforce, audit and warn have different operational effects and can pin policy behavior to a Kubernetes version.
- Apply policy labels to namespaces (doc, Kubernetes Documentation, 16 min)
Namespace labels are the main control surface and need a repeatable application method.
- Configure cluster-wide admission defaults (tutorial, Kubernetes Documentation, 24 min)
Defaults cover new or overlooked namespaces while exemptions preserve the system components that truly need them.
- Start with audit and warn evidence (tutorial, Kubernetes Documentation, 18 min)
Admission behavior identifies incompatible workloads before enforcement interrupts their deployment.
- Translate violations into pod security contexts (doc, Kubernetes Documentation, 24 min)
Most restricted-profile failures are corrected through explicit user, privilege, capability and filesystem settings.
- Understand the kernel controls underneath (doc, Kubernetes Documentation, 20 min)
Seccomp, AppArmor and SELinux explain what admission settings ultimately constrain on Linux nodes.
- Exercise enforcement and a documented exception (tutorial, Kubernetes Documentation, 30 min)
A controlled namespace test proves rejection behavior and exposes whether an exception is broader than intended.