API server: authn, authz, admission, watches, and deprecations

Every request goes authentication, authorisation, then admission — mutating before validating. Watches are how controllers stay current, and a broken webhook can break the cluster.

Read the briefing
About 9 min to read 7 drills

What to remember

  1. Auth, authz, admission — in that order. A 401 is identity, a 403 is RBAC, and a 400-with-a-message is usually admission.
  2. Mutating admission runs before validating. So a mutation can create or fix a validation failure. Order matters when you debug.
  3. A failClosed webhook that is down blocks writes. Scope it with namespaceSelector and set timeouts, or your admission controller becomes the outage.
  4. Watches are long-lived and cheap; lists are expensive. A controller that lists on a timer instead of watching is how one operator floods an API server.
  5. API Priority and Fairness protects against noisy clients. It is the control-plane equivalent of rate limiting a tenant.

The big picture

kube-apiserver is the hub every component and every kubectl call goes through: it authenticates the caller, authorizes the verb, runs admission (mutating, then validation, then validating), and persists to etcd, and it serves the watches that let controllers react in milliseconds without polling. Interviewers probe it because the request pipeline explains a whole family of production incidents: cluster-wide "cannot create anything" from a dead webhook, 429 storms from a badly written operator, and manifests that fail after an upgrade removes an API version.

The mental model

Think of a request passing through a fixed sequence of gates, each able to reject: who are you (authentication), may you do this (authorization), what should the object become and is it allowed (admission), then a write to etcd. Everything third-party you bolt onto those gates, above all admission webhooks, runs synchronously in the critical path. On the read side, picture one stream per interested client: list once, then watch from a resourceVersion, and re-list if you fall too far behind. API Priority and Fairness stands at the door deciding whose requests wait when the server is busy.

In depth

The request pipeline: authn, authz, admission, persist

Every request to kube-apiserver walks the same path. Authentication establishes identity from client certificates, bearer tokens (ServiceAccount JWTs, OIDC tokens from an identity provider, bootstrap tokens), or an authentication webhook; a failure is 401 Unauthorized. Authorization asks whether that identity may perform the verb on the resource; modes are tried in order (Node, RBAC, Webhook are the common ones), the first to allow wins, and a denial from all is 403 Forbidden. kubectl auth can-i create deployments -n shop --as system:serviceaccount:ci:deployer answers authorization questions without making the change.

Admission runs only for writes and only after authorization. Mutating admission goes first: built-in plugins (defaults, ServiceAccount token projection, LimitRanger) and then mutating webhooks such as sidecar injectors, which may change the object. Then the API server validates the mutated object against its schema, including CEL validation rules on CRDs, so structural problems return 422 Invalid with the field path. Then validating admission: built-in plugins, ValidatingAdmissionPolicy (CEL rules evaluated in-process), and validating webhooks, which run in parallel and can only accept or reject. Only after all of that does the object reach etcd, and the audit log records every stage.

The order explains real behaviour. A sidecar injector must run before a policy that says "every container needs resource limits", so mutating precedes validating. A webhook that cannot be reached surfaces as Internal error occurred: failed calling webhook, a 500 rather than a 403, because it is admission, not authorization. And RBAC can never grant something admission forbids, which is why "give the ServiceAccount cluster-admin" never fixes a webhook error. Interviewers ask for the order, then ask what each error code implies about where the request died.

Admission webhooks: third-party code in the critical path

A MutatingWebhookConfiguration or ValidatingWebhookConfiguration tells the API server to call an HTTPS endpoint (usually a Service in the cluster) for requests matching rules (groups, versions, resources, operations), further narrowed by namespaceSelector, objectSelector, and matchConditions (CEL expressions). Two fields decide the blast radius. timeoutSeconds (default 10, maximum 30) is how long every matching write waits when the webhook is slow. failurePolicy decides what happens when the call fails or times out: Ignore admits the request, Fail rejects it.

The failure modes follow directly. A webhook whose pods are down, whose Service has no endpoints, or whose serving certificate no longer matches caBundle, combined with Fail and broad rules, becomes a cluster-wide write outage: every kubectl apply, every controller creating pods, every node joining. If the rules also match the webhook's own namespace, you cannot roll out a fix because the fix is itself a blocked write. A slow webhook does not fail loudly; it adds its latency to every write in the cluster, which shows up as apiserver_admission_webhook_admission_duration_seconds climbing and rollouts crawling. Mutating webhooks that disagree reorder each other's changes; reinvocationPolicy: IfNeeded exists because of that.

What to check when writes fail: kubectl get validatingwebhookconfigurations,mutatingwebhookconfigurations, then for the named webhook kubectl -n <ns> get endpoints <svc> and the webhook pod logs, then apiserver_admission_webhook_rejection_count. The escape hatch is to patch failurePolicy to Ignore or delete the configuration, which is why webhooks should never intercept admissionregistration.k8s.io objects themselves.

Safe shape: a short timeout (2 to 5 seconds), Fail only for security-critical checks and then with a namespaceSelector excluding kube-system and the webhook's own namespace, rules scoped to the resources that matter, at least two replicas with a PodDisruptionBudget, and alerts on latency and rejections. For invariants expressible in CEL, ValidatingAdmissionPolicy removes the network call entirely.

Watches, resourceVersion, and informers

Controllers do not poll. A client performs a LIST, which returns the objects plus a resourceVersion identifying that snapshot, then opens a WATCH from that version. The API server streams ADDED, MODIFIED, DELETED, and periodic BOOKMARK events as changes are persisted, typically within milliseconds. You can see the raw mechanics with kubectl get pods -w -v=6, which logs the GET with watch=true&resourceVersion=....

The server keeps only a bounded history, because etcd compacts old revisions. A watcher that disconnects for too long and asks to resume from a compacted version receives 410 Gone with too old resource version and must LIST again to resynchronize. Occasional occurrences are normal; a constant stream of them means clients are falling behind or the server is churning.

An informer packages this into a library pattern: a reflector does list-then-watch, a local cache (the indexer) holds the current objects, and handlers are called on changes; a work queue with rate-limited retries drives the reconcile loop. Controllers read from the cache, so it can be slightly stale, and every update therefore carries the object's resourceVersion as a precondition: a conflicting write returns 409 Conflict (the object has been modified; please apply your changes to the latest version) and the client re-reads and retries. Shared informers mean one watch per resource type per process, not one per handler.

Scale consequences: an unpaginated LIST of a large resource is expensive for the server (it must serialize everything from the watch cache or etcd) and for the client; use limit with continue tokens, field and label selectors, and informers rather than repeated LISTs. After an API server restart every client re-lists at once, the classic thundering herd, which is what API Priority and Fairness and the watch cache exist to absorb.

Deprecations and API removals

API groups version their resources through alpha (off by default, may disappear), beta (served by default, removed a fixed number of releases after deprecation), and GA (v1, stable within a major version). The API server serves each object in every supported version of its group and converts between them; the version written to etcd is the group's storage version. So existing objects survive an upgrade that removes a version, but a manifest or client that names the removed version cannot be interpreted at all: no matches for kind "Ingress" in version "extensions/v1beta1". Removals interviewers reference: extensions/v1beta1 and networking.k8s.io/v1beta1 Ingress in 1.22, PodSecurityPolicy and batch/v1beta1 CronJob in 1.25, autoscaling/v2beta2 HorizontalPodAutoscaler in 1.26.

Deprecation is loud before removal is fatal. The API server returns a Warning header that kubectl prints, annotates audit events with k8s.io/deprecated: "true" and k8s.io/removed-release, and exposes the metric apiserver_requested_deprecated_apis labelled by group, version, resource, and removed release; a non-zero series there is the to-do list for the next upgrade. Tools such as pluto and kubent scan manifests and Helm releases offline.

Helm adds a trap: release manifests are stored in Secrets with the API versions they were installed with, so helm upgrade can fail on a removed version even after the chart is fixed; the mapkubeapis plugin rewrites the stored release. The upgrade discipline is to scan before bumping the control plane, fix at the source (chart, kustomization, operator), and treat kubectl api-resources and kubectl explain <kind> as the authority for what the current server accepts. Candidates who say "deprecated means broken" or "kubectl converts it for me" reveal they have not run an upgrade.

API Priority and Fairness: protecting the server from its clients

The API server bounds concurrency with --max-requests-inflight and --max-mutating-requests-inflight, and API Priority and Fairness (APF) decides how that budget is shared. A FlowSchema matches requests by subject (user, group, ServiceAccount), verb, resource, and namespace and assigns them to a PriorityLevelConfiguration; each priority level has a share of the concurrency and a set of queues, and requests from different flows are shuffle-sharded across queues so one noisy flow cannot starve the others in its level. Built-in levels include exempt (system:masters, never queued), system (nodes), leader-election, workload-high (built-in controllers), workload-low (ServiceAccounts in general), global-default, and catch-all. kubectl get flowschemas,prioritylevelconfigurations shows the whole table.

When a level's queues are full the server rejects with 429 Too Many Requests and a Retry-After header; when they are merely busy, requests wait, and latency rises before anything fails. The metrics to read are apiserver_flowcontrol_rejected_requests_total and apiserver_flowcontrol_current_inqueue_requests by flow_schema and priority_level, plus apiserver_flowcontrol_request_wait_duration_seconds. Every response carries X-Kubernetes-PF-FlowSchema-UID and X-Kubernetes-PF-PriorityLevel-UID headers so a client can see how it was classified. To find who, join those with the audit log, which records user and userAgent.

Do not confuse server-side 429s with client-side throttling. client-go and kubectl have their own token-bucket limiter, and Waited for 1.2s due to client-side throttling, not priority and fairness is that limiter, most often triggered by discovery against many CRDs; it says nothing about server load.

The operational pattern: put in-house operators in their own FlowSchema at a lower level than the built-in controllers and kubelets, alert on rejections by flow schema, and treat a 429 storm as evidence about a client (unpaginated LISTs, retry loops without backoff, missing informers) before it is evidence about capacity. Raising inflight limits to accommodate a misbehaving client only lets it hurt the server harder.

What to look at when the API server is the suspect

Start with the server's own verdict: kubectl get --raw='/readyz?verbose' lists every readiness check (etcd connectivity, informer sync, admission plugins) with ok or failed, and /livez says whether the process is healthy at all; on a managed cluster these are what the provider's health page summarizes. Then the request metrics: apiserver_request_duration_seconds by verb and resource separates slow LISTs from slow writes, apiserver_request_total by code shows 429s (APF), 5xx (webhooks, etcd), and 401 or 403 spikes (a rotated credential), and etcd_request_duration_seconds on the API server side tells you whether the latency is behind it. apiserver_current_inflight_requests against the configured limits shows saturation.

For a single failing call, kubectl -v=8 prints the exact request, response code, and body, including the webhook name in an admission failure or the Retry-After on a 429. The audit log answers who did what: filter by user.username, userAgent, and objectRef.resource to find the client generating load or the identity that deleted the namespace. Interviewers listen for whether you reach for these before restarting anything.

Myths and facts

Myth: Authorization runs before authentication.

Fact: Identity comes first; RBAC cannot evaluate a rule until it knows the user and groups. The order is authn, authz, admission, persist.

Myth: Validating webhooks run first so mutations cannot break validation.

Fact: Mutating admission runs first, then schema validation, then validating admission, precisely so validators see the final object.

Myth: Once an API version is deprecated my manifests stop working.

Fact: Deprecated versions keep working and emit warnings; removed versions fail with 'no matches for kind'. The deprecation guide gives the removal release for each.

Myth: 429s mean the API server needs more CPU.

Fact: 429s are API Priority and Fairness rejecting requests in a full priority level, usually because one client is misbehaving. Find the flow schema and the client before buying hardware.

Myth: Controllers subscribe to an event bus or poll the API on a timer.

Fact: They list once and watch from a resourceVersion; the API server streams changes. The only polling-like behaviour is the re-list after a watch expires.

Myth: failurePolicy: Fail is always the secure choice, so use it everywhere.

Fact: Fail without scoping turns any webhook outage into a cluster-wide write outage, including for kube-system and the webhook itself. Use Fail for security-critical checks with a namespaceSelector and a short timeout; use Ignore for convenience webhooks.

Myth: kubectl converts old apiVersions to new ones when applying.

Fact: kubectl sends what you wrote. The server converts stored objects between supported versions, but a manifest naming a removed version is rejected outright.

How pros do it

  • Every webhook: timeoutSeconds of 2 to 5, rules scoped to the resources it actually checks, a namespaceSelector excluding kube-system and its own namespace, at least two replicas with a PodDisruptionBudget, and alerts on admission latency and rejection count.
  • Reserve failurePolicy: Fail for security-critical validation; use Ignore for sidecar injection and other conveniences, and prefer ValidatingAdmissionPolicy (CEL) for invariants that need no external call.
  • Before every control-plane upgrade, read the deprecation guide for the target release, check apiserver_requested_deprecated_apis, scan manifests and Helm releases with pluto or kubent, and fix charts at the source.
  • Write API clients with shared informers, paginated LISTs, field and label selectors, and retry on 409 by re-reading; never loop over unbounded LISTs or retry 429s without honouring Retry-After.
  • Give in-house operators and batch tooling their own FlowSchema below the built-in controllers, and alert on apiserver_flowcontrol_rejected_requests_total by flow_schema.
  • Keep audit logging on with a policy that records metadata for everything and request bodies for sensitive writes, and know how to query it by user and userAgent during an incident.
  • In an API server incident read /readyz?verbose, request latency and error rate by verb and code, and etcd request latency before restarting components.

Questions people ask

Why does every kubectl apply hang for 30 seconds and then fail with 'context deadline exceeded'?

Name the mechanism first: a webhook matching the write is unreachable and configured with failurePolicy Fail and a long timeout, so the API server waits the full timeout and rejects. Then say how you find it: the webhook configurations, then the webhook Service's endpoints and certificate. Then the mitigation: restore it, or patch failurePolicy to Ignore to unblock the cluster while you fix it. Mechanism, evidence, reversible mitigation, in that order.

I keep seeing 'too old resource version' in controller logs. Is something broken?

Say 'not by itself' and explain: watch history is bounded by etcd compaction, so a client that falls behind gets 410 Gone and re-lists, which is the designed recovery. Then give the threshold: investigate only if it happens constantly, which points at an overloaded client or a server churning through revisions. Knowing it is normal in small doses is the signal.

Can I bypass a broken webhook without deleting it?

Yes: patch its failurePolicy to Ignore, or add a namespaceSelector that excludes the namespaces you need to unblock. Then add the design point: both are writes to the webhook configuration, which is why webhooks must never match admissionregistration.k8s.io resources themselves, or you lock yourself out of the fix.

kubectl printed a deprecation warning for my manifest. Do I have to fix it now?

Say 'before you upgrade to the release that removes the version', and distinguish deprecated (warns, works) from removed (no matches for kind). The warning names the replacement; fix the source (chart, kustomization, operator). Then add the Helm trap: the stored release keeps the old API versions, so helm upgrade fails on removed versions until the release metadata is rewritten.

How do I find out which client is hammering the API server?

Go to the server's own evidence: apiserver_flowcontrol_rejected_requests_total and current_inqueue_requests by flow_schema show which class of client is queued or rejected, then the audit log by user and userAgent gives the specific identity and the verbs and resources it is spamming. Say you find the client before you buy hardware.

kubectl says 'Waited for 1.5s due to client-side throttling'. Is the API server overloaded?

Say no: that is kubectl's own rate limiter, usually because discovery across many CRDs issues hundreds of requests. Then say what server overload actually looks like: 429 responses with Retry-After, or high apiserver_request_duration_seconds. Separating the two throttles is the whole answer.

How do I find the right apiVersion for a resource on my cluster?

Point at the server, not your memory: kubectl api-resources lists every kind the server currently serves with its preferred group and version, kubectl api-versions lists the versions, and kubectl explain shows the schema. Saying 'the server is the authority' is the right instinct.

Further reading

Drills · 7

Answer in your head, or out loud, before you reveal. Mark each one: "Again" brings it back, "Got it" counts on your desk.

1 Pick the strongest answer

A kubectl create deployment hits the API server. Walk me through what happens to that request, in order, before anything is written to etcd.

  1. Authorization → authentication → validation → admission. You cannot decide what a caller may do before knowing who they are.
  2. Authentication → authorization (RBAC) → mutating admission → schema validation → validating admission → persist. Identity first, permission second, then admission shapes and checks the object; mutating runs before validating so validators see the final object.
  3. Validating admission → mutating admission, so mutations cannot break validation. It is the reverse: mutations happen first precisely so validation checks the mutated object.
  4. Admission runs asynchronously after the object is stored. Admission is synchronous and in the request path; that is why a broken webhook can block writes.
In short

The order is authentication, then authorization, then mutating admission, then validation, then validating admission, then etcd.

Why

The pipeline is authn → authz → admission (mutating, then built-in validation, then validating) → etcd. Each stage can reject. Knowing the order explains real behaviours: why a sidecar injector (mutating) runs before a policy check (validating), and why webhook outages look like "cannot create anything".

The common mistake

Putting validation before mutation, or treating admission as something that runs after the write. Admission is synchronous and in the request path, which is exactly why a dead webhook blocks the whole cluster.

Read the docs

2 Answer out loud

How do controllers find out about changes without polling the API server? Cover what a watch is, what resourceVersion is for, what an informer adds, and what 'too old resource version' means. Three to five sentences.

In short

A strong answer says a client lists, then watches from the resourceVersion, and lists again after a 410 'too old resource version'.

What a strong answer does
  • mechanism: List returns objects plus a resourceVersion; watch from that version streams ADDED/MODIFIED/DELETED; the API server keeps a bounded history (etcd compaction), so a client too far behind gets 410 Gone and must re-list; informers wrap this with a local cache and event handlers.
  • implications: Caches may be slightly stale, so writes use optimistic concurrency; watch storms during re-lists are why large clusters tune APF and use paginated lists.
  • communication: Mechanism → failure mode → consequence, precise terms.
Why

This is where senior candidates separate from people who have only used kubectl: watches and informers are the mechanism behind every controller, and their failure mode (re-list storms) is a real operational concern.

The common mistake

Describing controllers as subscribers to an event bus, or as polling on a timer. It is list-then-watch from a resourceVersion with a bounded history, and the cache can be slightly stale, which is why writes use optimistic concurrency.

3 Read the output

The cluster was upgraded to 1.30 last week. What does this apply print, and why?

# ingress.yaml (unchanged for three years)
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: web
spec:
  rules:
    - host: shop.example.com
      http:
        paths:
          - path: /
            backend:
              serviceName: web
              servicePort: 80

$ kubectl version | grep Server
Server Version: v1.30.2
$ kubectl apply -f ingress.yaml
  1. It succeeds because the existing object keeps its old version. Stored objects are served in supported versions; a manifest naming a removed version cannot be applied.
  2. ingress.networking.k8s.io/web unchanged — kubectl converts it automatically. kubectl does not rewrite API versions for you (kubectl convert was removed from kubectl years ago).
  3. A deprecation warning, then ingress.extensions/web configured. Deprecated versions warn; removed versions fail. extensions/v1beta1 Ingress was removed in 1.22.
  4. error: resource mapping not found for name: "web" ... no matches for kind "Ingress" in version "extensions/v1beta1" — the API version was removed in 1.22; the manifest must move to networking.k8s.io/v1 with the new backend schema. Removed API versions are gone from the server's discovery; the object cannot be interpreted at all.
In short

The apply fails with 'no matches for kind Ingress in version extensions/v1beta1' because that API version was removed in 1.22.

Why

Kubernetes removes beta API versions on a published schedule, and upgrades are when three-year-old manifests bite. Tools like pluto or kubent scan for removed versions before an upgrade, and kubectl-convert rewrites a manifest to a newer version. The interview signal is knowing that deprecation warnings become hard failures and that the fix is a schema change, not a flag.

Read the docs

4 Pick the strongest answer

Every kubectl apply in the cluster fails with Internal error occurred: failed calling webhook "policy.example.com": context deadline exceeded, including in kube-system. What happened, and what would you change about how webhooks are run here?

  1. etcd is out of space; the webhook error is a red herring. The error explicitly names the webhook call timing out before persistence.
  2. kubectl's client-side throttling; retry with --request-timeout. Client throttling looks different ('Waited for ...s due to client-side throttling') and does not produce webhook errors.
  3. A validating webhook with failurePolicy: Fail and no namespace scoping is down or slow, so the API server rejects every matching write; webhooks need Ignore where safe, tight timeouts, and a namespaceSelector that excludes kube-system. Admission webhooks are synchronous; with Fail, unavailability equals a cluster-wide write outage.
  4. RBAC denies the webhook's ServiceAccount; grant it cluster-admin. The API server calls the webhook, not the reverse; a deadline exceeded is a network/availability problem, and cluster-admin is never the fix.
In short

A validating webhook with failurePolicy Fail is down, so every write fails; scope webhooks, set short timeouts, and use Ignore where safe.

Why

Webhooks put third-party code in the API server's critical path. The failure policy decides whether their unavailability fails open or closed; Fail is right for security-critical checks but only with scoping that keeps the cluster's own components out of the blast radius, and with the webhook deployed for high availability. Interviewers ask this because it is a common self-inflicted outage.

Read the docs

5 Scenario: what do you do next?

After a control-plane restart on a 900-node cluster, kubectl is slow for everyone, controllers lag by minutes, and API server logs show many 429s. CPU on the API servers is pegged. A new in-house operator was deployed yesterday.

Step 1. What do you look at first?

  1. Restart etcd. Nothing points at etcd; restarts add risk.
  2. Delete the new operator. A reasonable hypothesis, but acting on it without evidence during a restart-induced re-list storm may remove the wrong thing.
  3. API server request metrics by client and verb (apiserver_request_total, apiserver_flowcontrol_*) to see who is generating load and which priority level is rejecting. The API server tells you who is hammering it; guessing at the operator is plausible but unproven.
  4. Scale the API servers vertically right away. Possibly later; first find the source, or you buy hardware for a bug.

Step 2. Metrics show the new operator issuing thousands of unpaginated LIST calls per minute across all namespaces with no informer cache, retrying on every 429. What is the mitigation?

  1. Increase the operator's replica count so it finishes faster. More replicas, more LISTs.
  2. Scale the operator to zero (or block it with a FlowSchema at the lowest priority) to stop the load now; the cluster recovers, then the operator is fixed to use informers and paginated lists. Stop the bleeding with a reversible action aimed at the proven source; API Priority and Fairness gives you a scalpel if you cannot scale it down.
  3. Raise the API server's max-requests-inflight to accommodate it. That lets a misbehaving client take down the API server harder.
  4. Give the operator's ServiceAccount a higher priority level. That starves everyone else in favour of the offender.

Step 3. What is the systemic fix?

  1. Client-side: informers with shared caches and paginated lists in the operator; server-side: a FlowSchema that puts unknown in-house clients at a lower priority level; and a review checklist for anything that talks to the API server at scale. Fixes the client, contains the next bad client, and makes the pattern reviewable.
  2. Ban operators. Operators are the extension model; the fix is how they are written.
  3. Buy bigger control-plane nodes. Capacity without containment just raises the ceiling for the next bug.
In short

Read the API server request metrics first, stop the operator that floods the server, and then fix it to use informers and paged lists.

Why

Large clusters die from their clients. API Priority and Fairness exists to keep one noisy client from starving the kubelets and controllers the cluster depends on, and informers exist so clients do not need to list. The interview shape: metrics to identify, a reversible mitigation aimed at the proven source, then fixes on both the client and the server side.

Read the docs

6 Find what's broken

During a policy-service outage the whole cluster, including kube-system and the policy service's own redeploy, could not create or update anything. Which two lines turned a webhook outage into a cluster outage?

apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
  name: image-policy
webhooks:
  - name: images.policy.example.com
    admissionReviewVersions: ["v1"]
    sideEffects: None
    failurePolicy: Fail
    timeoutSeconds: 30
    rules:
      - apiGroups: ["*"]
        apiVersions: ["*"]
        operations: ["CREATE", "UPDATE"]
        resources: ["*"]
    clientConfig:
      service:
        namespace: policy
        name: image-policy
        path: /validate
        port: 443
In short

The 30-second timeout and the rule that matches every resource turn a webhook outage into a cluster outage.

What's broken
  • Line 10: A 30-second timeout (the maximum) means every write waits half a minute on a dead webhook before failing; combined with Fail, the API server is effectively frozen for writers.
  • Line 15: Matching every resource in every group with no namespaceSelector or objectSelector puts kube-system and the policy namespace itself in the blast radius, so the webhook cannot be fixed by redeploying it.
Why

failurePolicy Fail (line 9) is defensible for an image policy; what is not defensible is failing closed on everything with the longest possible timeout. Scoping and short timeouts are what let a security webhook fail safely. Interviewers like this because the dangerous line looks like the safe choice.

Read the docs

7 Quick recall

Follow-up: mutating or validating admission, which runs first?

In short

Mutating admission runs first, so validating admission sees the final object.

Accepted

mutating · mutating admission · mutating webhooks

Why

Mutating admission runs first so validation sees the final object.

Next lesson etcd: quorum, Raft, and the failure modes that page you
Drill · API server
0:00

Loading…