Kubernetes Admission Control

Admission controllers are the last line of defense in the Kubernetes API request pipeline. They run after authentication and authorization but before the object is written to etcd. Mutating controllers can modify objects; validating controllers can accept or reject them. Understanding the admission chain is critical for implementing security policies and for debugging mysterious resource creation failures.

Overview

Overview

Admission control is the mechanism that makes Kubernetes policy enforcement possible. Without admission controllers, any authenticated user with RBAC permission to create pods could create pods that run as root, mount host paths or bypass resource limits.

Every API request passes through the same stages before anything is stored.

  • Authentication asks who you are.
  • Authorization, usually RBAC, asks whether you may do this.
  • Mutating admission may change the object: it injects containers and fills in defaults.
  • Validating admission asks whether this object is acceptable.
  • Only then is the object persisted to etcd.

> [!IMPORTANT] Admission is the second policy layer that turns Kubernetes from a simple container scheduler into a multi-tenant platform with enforceable governance.

Key concepts

  • Webhook failurePolicy and Selector Scoping

Sign up free to read the full topic

More DevOps topics

Start free on Cariara · Coding problems · System design studio