# Kubernetes Manifest-Based Admission Control Beta in 1.37

> Kubernetes 1.37 graduates manifest-based admission control to Beta: staticManifestsDir loads webhooks and CEL policies from disk, even when etcd is down.

URL: https://www.matthewswong.com/en/blog/kubernetes-manifest-based-admission-control-beta/

- Author: Matthews Wong (https://www.matthewswong.com/en/about/)
- Published: 2026-10-17
- Updated: 2026-10-17
- Category: Security

> **Key takeaway:** Manifest-based admission control, Beta and on by default in Kubernetes 1.37, loads admission webhooks and CEL policies from files named in staticManifestsDir. They are enforced from API server startup, keep working while etcd is down, and can block deletion of API-based admission resources. The price is per-server files, URL-only webhooks and no parameters.

Every admission policy I have ever deployed to a cluster shared one weakness: it was an API object, so it only existed after the API server was up and etcd had answered, and it could be deleted by anyone whose RBAC allowed it. During a restore from backup, that is the window where the policy you rely on is simply not there.

Kubernetes 1.37 (Garhwal, released 26 August 2026) graduates manifest-based admission control to Beta and enables it by default. This post is a close reading of the official docs page, the v1.36 alpha announcement, the 1.37 release post and KEP-5793. I have not run it on a production control plane, so everything below is what those documents state, plus config I assembled from their examples and say so where I did.

## Three gaps that API-based admission cannot close

The docs name three limits of policies registered through the API. The bootstrap gap: the API objects must be created and loaded by the dynamic admission controller, and until that happens nothing is enforced. The self-protection gap: admission configuration resources are not themselves subject to webhook admission, to avoid circular dependencies, so a sufficiently privileged user can delete or modify a critical policy. The etcd dependency: if etcd is unavailable or corrupted, API-based policies may not load correctly.

The v1.36 announcement puts the first gap in operational terms: when you restore from a backup or recover from an etcd failure, the window between the API server serving requests and your policies becoming active can be significant. KEP-5793 lists exactly this as a user story: a restored cluster, an etcd that has been reset, or a brand-new bootstrap, where a security webhook must be called from the first request.

The KEP also explains why the usual workarounds fall short. External configuration management such as Helm, Kustomize or GitOps does not eliminate the bootstrap gap and the configurations can still be deleted through the API. RBAC deny rules would need a significant redesign. Compiling a custom admission plugin into the API server needs custom builds. A file read by the API server itself sidesteps all three.

## How staticManifestsDir wires it up

The mechanism is one field. You add staticManifestsDir to the plugin configuration of an AdmissionConfiguration file, and pass that file to kube-apiserver with --admission-control-config-file. The ManifestBasedAdmissionControlConfig feature gate must be on; per the docs it has been enabled by default since 1.37, and it was alpha and off by default in 1.36. Each of the four plugins, ValidatingAdmissionWebhook, MutatingAdmissionWebhook, ValidatingAdmissionPolicy and MutatingAdmissionPolicy, needs its own directory.

The config below is the docs example, trimmed to the two plugins I would start with. The kube-apiserver fragment underneath is my own illustration of a kubeadm-style static pod, not something the docs prescribe; the v1.36 post only says that if the API server runs as a Pod you need to mount the directory in, and that read-only is fine.

Three details decide whether this works on the first try. The path must be absolute; glob patterns and relative paths are not supported. Only direct-child files ending in .yaml, .yml or .json are loaded, and subdirectories and other extensions are ignored. And each directory may only hold resource types its plugin accepts, so a ValidatingAdmissionPolicy directory can contain policies and bindings and nothing else.

## What changes versus an API-based policy

The trade is isolation for flexibility. A manifest-based configuration lives in what KEP-5793 calls an isolated universe: it may not reference API resources, nor the reverse. That one rule explains every restriction in the table below, because a policy that needs a ConfigMap or a Service has a dependency on the very cluster state that might not exist yet at startup.

Concern

API-based admission

Manifest-based admission

Where it lives

An object stored through the Kubernetes API

A file under staticManifestsDir, not visible or changeable through the API

Active from

After the object is created and the dynamic admission controller loads it

As soon as the API server is ready to serve requests

etcd down

Policies may not load correctly

Independent of etcd availability

Can intercept admission resources

No, skipped to avoid circular dependencies

Yes, and only manifest-based hooks run on those types

Webhook backend

Service or URL

clientConfig.url only; the service field is not allowed

Policy parameters

paramKind and paramRef

Both rejected; a binding must name a policy in the same manifest set

Object names

Anything valid

Must end in .static.k8s.io

Evaluation order

After manifest-based configurations

Before API-based configurations

Updating

Change the API object

Edit the file; watched with fsnotify and a polling fallback, default 1 minute

Several API servers

One object, shared through etcd

Each server loads its own files; no cross-server synchronisation

Manifest files go through the strict decoder, which rejects duplicate and unknown fields, and each object gets the same defaulting and validation as the REST API. You can group a policy and its binding with a v1.List or with --- separators, and the docs note a policy and its binding are loaded together atomically.

## Protecting the protectors

The headline capability is the one API-based admission cannot offer: a policy that intercepts operations on ValidatingAdmissionPolicy, MutatingAdmissionPolicy, their bindings and the two webhook configuration types. The docs example denies DELETE and UPDATE on any of them that carries the platform.example.com/protected label set to true. The expression passes unless the old object has that label, which is why it checks oldObject rather than object.

Save it as a file in the ValidatingAdmissionPolicy directory. The names end in .static.k8s.io, failurePolicy is Fail, and the binding uses the Deny validation action. This is the docs example, reproduced with its names.

Order matters here too. Manifest-based configurations are evaluated before API-based ones, so platform policy wins over anything a team registers later. For the admission resource types themselves, only manifest-based hooks run; API-based hooks are skipped. TokenReview and SubjectAccessReview are excluded for everyone, because intercepting them could lock the cluster out of its own authentication and authorisation path.

> This policy is a lock with the key on the node. By its own expression it also denies your GitOps controller from updating a protected object, so labelling something protected means every future change goes through the file on disk. That is the intent, and it is also the first thing that will surprise the team that owns the labelled resource.

## Reload semantics: strict at boot, forgiving at runtime

Startup and runtime follow opposite rules, deliberately. At startup every manifest is read and validated, the API server does not become ready until all load successfully, and any invalid manifest makes it fail to start. The v1.36 post defends this: failing fast is safer than running without the policies you expected. The same applies if two files define the same type and name.

At runtime the directories are watched with fsnotify and a polling fallback, default one minute. A content hash of all manifest files is computed on each check and nothing happens if it is unchanged. A new configuration is validated first; if it fails, the error is logged, metrics are updated and the previous valid configuration stays. A successful reload replaces the old one atomically.

The docs ask you to write changes atomically, for example to a temporary file and then rename, so the watcher never reads a half-written file. This matters most for mounted ConfigMaps and Secrets. Because files without a .yaml, .yml or .json extension are ignored, a staging name with a different extension is invisible to the loader until the rename.

> A rejected reload is silent to the person who pushed the change: the old policy keeps running and only a log line and a metric say so. Treat the failure counter as the test result of every policy rollout, not as an alert you read later.

## Where it bites: the trade-offs the docs spell out

KEP-5793 lists its own drawbacks without softening them: reduced visibility, because you cannot list active admission controls through the API; operational complexity in HA clusters; harder debugging, because a denial may come from a file you cannot kubectl get; and limited functionality. The docs troubleshooting table turns these into symptoms. Two more I would put on a rollout checklist come from elsewhere on the page: downgrading with staticManifestsDir still configured makes the API server fail to start on unknown fields, and in 1.37 a webhook that intercepted authentication or authorisation review requests silently stops receiving them.

Symptom

Likely cause

Resolution

API server will not start

Invalid manifest at startup

Read the API server logs for the validation error, fix the file, restart

API server will not start

Duplicate object names across manifest files

Make names unique within each plugin directory

Policy not enforced after a file edit

Reload validation failed; previous config retained

Check the reload failure metric and logs, fix the file, wait for the next cycle

Webhook calls failing

clientConfig.url not reachable from the kube-apiserver

Verify reachability from the API server host; the KEP suggests failurePolicy Ignore only to isolate the fault

Cannot create an API object

Name ends in .static.k8s.io, a suffix reserved while the gate is on

Rename the API-based object

Admission decisions differ between API servers

Configuration drift in an HA control plane

Sync files with configuration management; compare the hash label on the config info metric

A webhook stops seeing SubjectAccessReview or TokenReview after upgrading

ExcludeAdmissionWebhookVirtualResources, enabled by default in 1.37

Remove those rules; the KEP offers the gate set to false as a temporary escape hatch before it is locked at GA

The last row deserves its own sentence because it is not about manifests at all. KEP-5793 bundles a behaviour change into the beta: ValidatingAdmissionWebhook and MutatingAdmissionWebhook now skip the same authentication and authorisation virtual resources that the CEL policies already skipped. It is a short-term opt-out, will be locked at GA, and the KEP says a deprecation warning fires on writes of webhook rules that name those resources. Audit your webhook rules before upgrading, not after.

## Observability: you cannot kubectl get it

Since nothing is visible through the API, the docs lean on three signals. Metrics: a reload counter with status, plugin and apiserver_id_hash labels, a last-reload timestamp gauge, and a config info gauge whose hash label exposes drift between API servers. Existing admission metrics such as apiserver_admission_webhook_rejection_count carry the object name, so the .static.k8s.io suffix identifies manifest-based decisions. Audit annotations include the object name too. The rules below are my own PromQL built on those metric names, to adapt rather than copy.

The second rule works because the config info value is always 1 and carries the hash as a label: if the count of distinct hashes for a plugin is above one, at least two API servers hold different files. Run it with a for clause long enough to ride out a rolling file push, since servers reload on their own schedule.

## What to do on Monday

Start with one policy you would be embarrassed to lose, and treat it as a change to the control plane, not to the cluster:

1. Check that you control kube-apiserver flags and its filesystem. I did not verify whether any managed Kubernetes provider exposes --admission-control-config-file, so confirm that before planning.
2. Rehearse on a throwaway 1.37 cluster: a broken file must stop the API server from starting, and a broken edit must leave the old policy running with the failure counter incremented.
3. Start with the deny-privileged policy from the docs, then add the protect-admission-resources policy once you have decided which labels mark protected objects.
4. Distribute the files to every control plane node with configuration management, and alert on the reload failure counter and on more than one config hash per plugin.
5. Write the downgrade note now: remove staticManifestsDir from the AdmissionConfiguration and restart before moving a control plane to a version without the feature.

The checks below prove both halves of the feature on a test cluster. The first applies a privileged pod outside kube-system, which the deny-privileged policy should refuse with its own message. The second tries to delete an admission policy labelled protected, which the protect policy should refuse. Neither command needs the policy to exist in etcd, which is the point.

The rule I take from this: a policy that must survive a mistake belongs outside the system it governs. Manifest-based admission control makes that possible for admission itself, at the cost of treating policy as control-plane configuration that you distribute, watch and downgrade by hand. Use it for the handful of rules whose absence would hurt, and leave everything parameterised or team-owned in the API.

## Sources and further reading

- Kubernetes docs: Manifest-Based Admission Control
- Kubernetes blog: v1.36, Admission Policies That Can't Be Deleted
- Kubernetes blog: Kubernetes v1.37 release (Garhwal)
- KEP-5793: Manifest Based Admission Control Config
- Kubernetes docs: ValidatingAdmissionPolicy
- Kubernetes docs: Dynamic Admission Control (webhooks)

## Source links

- https://kubernetes.io/docs/reference/access-authn-authz/manifest-admission-control/
- https://kubernetes.io/blog/2026/05/04/kubernetes-v1-36-manifest-based-admission-control/
- https://kubernetes.io/blog/2026/08/26/kubernetes-v1-37-release/
- https://www.kubernetes.dev/resources/keps/5793/
- https://kubernetes.io/docs/reference/access-authn-authz/validating-admission-policy/
- https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/

## FAQ

### What is manifest-based admission control in Kubernetes?

It lets the kube-apiserver load admission webhooks and CEL-based policies from files on disk, set through staticManifestsDir in the AdmissionConfiguration. The policies are active from API server startup, do not depend on etcd, and are not visible or changeable through the Kubernetes API. It reached Beta in Kubernetes 1.37.

### Is manifest-based admission control enabled by default in Kubernetes 1.37?

The ManifestBasedAdmissionControlConfig feature gate is enabled by default since 1.37, but nothing changes until you add staticManifestsDir to an AdmissionConfiguration file and pass it with --admission-control-config-file. Existing clusters without manifest configuration see no behavioural change, according to the docs.

### Do admission policies loaded from disk still work when etcd is down?

Yes. The KEP states manifest-based policies keep functioning when etcd is unavailable, which is one of the motivating use cases. The docs describe them as independent of etcd and active as soon as the API server is ready to serve requests.

### Can a ValidatingAdmissionPolicy loaded from a file use parameters or Service webhooks?

No. Manifest-based policies cannot use paramKind, bindings cannot use paramRef, and webhooks must use clientConfig.url instead of a service reference. The configuration is isolated from API resources because the cluster state may not exist yet at startup.

### What happens if a manifest file is invalid?

At startup an invalid manifest, or two files defining the same type and name, stops the API server from starting. At runtime a failed reload is logged and counted in a metric while the previous valid configuration stays active, so one bad edit does not remove your policies.

---

- HTML version: https://www.matthewswong.com/en/blog/kubernetes-manifest-based-admission-control-beta/
- Bahasa Indonesia: https://www.matthewswong.com/id/blog/kubernetes-manifest-based-admission-control-beta/
- Site index for agents: https://www.matthewswong.com/llms.txt
- Sitemap: https://www.matthewswong.com/sitemap.xml
- API description (OpenAPI): https://www.matthewswong.com/openapi.json
