A validating or mutating admission webhook sits on the API write path for the requests it matches. An unavailable webhook can stop those writes when its failure policy rejects call errors, or let them proceed without that webhook's decision when the policy ignores call errors. A policy that ignores transport failure still applies a webhook's explicit rejection when the webhook responds. Scope, timeout, and availability matter as much as the policy setting.
Admission webhook outage: choose a deliberate failure path
Operational decision
A deployment is blocked because its policy webhook Service has no healthy endpoint. Inspect the matching webhook configuration, endpoint availability, certificate expiry, and API rejection messages with the read-only commands. Identify exactly which operations and namespaces the webhook matches; do not disable every policy in the cluster to fix one workload. For a security-critical control, arrange redundant webhook replicas and a recovery path that can restore them without needing the broken webhook itself. For a low-risk mutation, a tested fail-open choice may preserve availability, but record which requests skipped evaluation and reconcile them afterward. In a disposable cluster, stop the webhook, submit a harmless test Deployment, and verify the configured result and timeout. Restore the webhook, then replay validation against objects admitted during the gap. An API write succeeding under fail-open is not proof that the intended policy was enforced.
kubectl get validatingwebhookconfigurations,mutatingwebhookconfigurations
kubectl get endpointslices -A -l kubernetes.io/service-name=policy-webhook
kubectl get events -A --sort-by=.lastTimestampCost and verification
Long webhook timeouts add latency to every matching API write and can magnify an outage during a rollout. Short timeouts may reject work during a transient pause. A fail-open choice trades enforcement for availability; a fail-closed choice can block recovery if the webhook itself cannot be recreated. Measure admission call latency, call errors, skipped decisions, and rejected requests separately. Keep an approved emergency path narrow and time-bounded.
Common Mistakes
- Do not treat a successful fail-open write as an enforced policy decision.
- Do not set a broad webhook match without testing its own recovery path.
- Do not confuse an explicit webhook denial with a transport failure policy.
Connected lessons
- DevOps: delivery, infrastructure, and reliable operations
- Kubernetes admission policy: reject an unsafe workload before scheduling
- Cluster upgrade drill: preserve a path through each version step
- GitOps emergency changes: preserve one recorded desired state
- Policy exceptions: make a temporary bypass expire and prove its scope
