Error from server (NotFound): deployments.apps "x" not found

The named object doesn’t exist in the namespace/cluster kubectl is pointing at.

Seen on: Kubernetes

Meaning

Typically the wrong namespace, a typo, or the object was deleted/renamed (Helm adds release prefixes). For NotFound on a resource type — the server doesn’t have a resource type — see that error instead.

Common causes

  • Wrong namespace or context
  • Name typo or Helm-generated prefix
  • Object deleted or not yet created

⚡ Quick fix

  1. List names: kubectl get deploy -A | grep part-of-name
  2. Use the right -n namespace
  3. Check context

Detailed fix by platform

Kubernetes

  1. kubectl get deploy -A | grep web

How to diagnose

  1. Namespace — Where does it live?
  2. Name — Exact name with prefix

🔧 Still not fixed?

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

🧠 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.