admission webhook denied the request Kubernetes Origin: Platform & cloud OSI layer 7 · Application Last updated 13 Oct 2026

Error from server: admission webhook "validate.nginx.ingress.kubernetes.io" denied the request

A validating admission webhook (ingress-nginx, Gatekeeper/OPA, Kyverno) inspected your object and rejected it; the reason follows in the message.

Exact message you may see admission webhook denied the requestdenied the request:host and path already defined
Seen on: Kubernetes

Meaning

Admission webhooks enforce rules beyond the API schema: duplicate Ingress host/path, disallowed images, missing labels or resource limits, forbidden annotations (ingress-nginx blocks risky snippet annotations by default).

Common causes

  • Policy violation (Kyverno/Gatekeeper rule)
  • ingress-nginx: host/path already defined in another Ingress, or snippet annotations disabled
  • Invalid nginx configuration generated by annotations

⚡ Quick fix

  1. Read the reason after “denied the request:”
  2. Fix the object to satisfy the policy
  3. Ask the platform team for an exception if needed

Detailed fix by platform

Kubernetes

  1. bash
    kubectl apply --dry-run=server -f ingress.yaml
    kubectl get validatingwebhookconfigurations

How to diagnose

  1. Webhook — Which one denied?
  2. Reason — Rule or nginx config error text

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):

Autopilot — GKE Autopilot rejected the workload: resources adjusted / violates Autopilot constraints (Google Cloud / Firebase)AutopilotBackoffLimitExceeded — Job has reached the specified backoff limit (BackoffLimitExceeded) (Kubernetes)BackoffLimitExceededcannot re-use a name that is still in use — Error: INSTALLATION FAILED: cannot re-use a name that is still in use (Kubernetes)cannot re-use a name …CrashLoopBackOff — Kubernetes: CrashLoopBackOff (Kubernetes)CrashLoopBackOffCreateContainerConfigError — Kubernetes: CreateContainerConfigError — secret / configmap not found (Kubernetes)CreateContainerConfig…CreateContainerError — Pod status CreateContainerError (Kubernetes)CreateContainerErrordefault backend - 404 — Ingress returns "404 Not Found" / "default backend - 404" (ingress-nginx) (Kubernetes)default backend - 404failed calling webhook — Internal error occurred: failed calling webhook "x": ... connection refused / context deadline exceeded (Kubernetes)failed calling webhookadmission…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.