CertGrid CertGrid
Hands-on Lab·Kubernetes and Cloud Native Security Associate

Admission Control and ValidatingAdmissionPolicy

Admission control is where a cluster stops being a set of defaults and starts being your policy. This guide reads the plugins that are already on, then writes a rule in CEL that the apiserver enforces itself - no webhook, no Service, no certificate - and shows exactly where the binding scopes it.

Platform Security Guide 32 of 42 Intermediate

Written against the versions above. ValidatingAdmissionPolicy is `admissionregistration.k8s.io/v1` on this cluster and enabled by default. MutatingAdmissionPolicy is v1 here too. Neither needs anything installed.

The cka5001 cluster: one control plane and 3 schedulable workers, on Cilium.
Server NameIP AddressOSRolesCPURAMHDD
CKA5001192.168.0.41Ubuntu 26.04 LTSControl Plane Node (tainted NoSchedule)2 Core4 GB50 GB
CKA5001-NODE01192.168.0.42Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA5001-NODE02192.168.0.43Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB
CKA5001-NODE03192.168.0.44Ubuntu 26.04 LTSWorker Node2 Core4 GB50 GB

Before you start

  1. What is enforcing admission right now

  2. The plugins that are on without anyone asking

  3. The two phases, in the apiserver's own words

  4. A rule of your own, with nothing behind it

  5. The refusal, the acceptance, and the scope

  6. What the webhook route would have cost

Official sources