Admission Chain
A write to the cluster can come back refused, or land in storage looking different from what you sent, with fields you never wrote. Who gets a say over every object before it is finally saved, and in what order?
Play the animation 5 steps, animated, plays on a computer or a tablet
Admission Chain, step by step
-
Already done, not admission at all. Admission runs after authentication, so every caller has an identity, even system:anonymous. Authorizers run in configured order, usually Node then RBAC, and the first to allow or deny decides, so no later one runs. If none allows, the answer is 403.
Play from step 1 -
Pluggable plus built-in. Default-on mutating plugins like ServiceAccount, LimitRanger and DefaultTolerationSeconds rewrite the Pod here, MutatingAdmissionPolicy runs CEL mutations in process, and MutatingWebhookConfiguration adds external policy webhooks (Kyverno, OPA Gatekeeper, sidecar injectors) on top, all before validation. A webhook failurePolicy decides if a timeout blocks the write.
Play from step 2 -
Built-in. The API validates the mutated object for its kind, so a missing required field or a value outside its allowed range fails here, before any validating webhook runs.
Play from step 3 -
Pluggable plus built-in. LimitRanger is back to check min and max, ValidatingAdmissionPolicy runs in process, validating webhooks call out over HTTPS, and ResourceQuota runs after all of them. None may mutate, and any deny aborts the request. See the ResourceQuota and LimitRange card.
Play from step 4 -
Built-in. The API writes the final object to ETCD via Raft. Once ETCD commits, the API returns HTTP 201 Created to the client and every watch that matches the new Pod receives an ADDED event so informers can update their caches.
Play from step 5