CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Security Specialist

A securityContext That Passes the Restricted Standard

The previous guide ended with a refusal listing four fields. This one turns that list into a Pod that is admitted, then checks each control from inside the running container - and finishes with the field restricted never asks for and you should set anyway.

Microservice Vulnerabilities Guide 19 of 40 Intermediate

Written against the versions above. The four fields are `runAsNonRoot`, `seccompProfile`, `allowPrivilegeEscalation` and `capabilities.drop` - two at Pod level and two at container level.

The cka6001 cluster: one control plane and 2 schedulable workers, on Cilium.
Server NameIP AddressOSRolesCPURAMHDD
CKA6001192.168.0.46Ubuntu 26.04 LTSControl Plane Node (tainted NoSchedule)2 Core4 GB50 GB
CKA6001-NODE01192.168.0.47Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA6001-NODE02192.168.0.48Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. The Pod that will not be admitted

  2. Add them, and be admitted

  3. Prove each control from inside

  4. The field restricted does not require

Official sources