error: the server doesn't have a resource type "x"
kubectl doesn’t know the resource name you typed — a typo, a CRD that isn’t installed, or a stale discovery cache.
the server doesn't have a resource typedoesn't have a resource type Meaning
Resource names come from API discovery. Custom resources appear only after their CRD is installed, and kubectl caches discovery in ~/.kube/cache, so freshly installed CRDs may need a cache refresh.
Common causes
- Typo or wrong short name
- CRD/operator not installed on this cluster
- Stale discovery cache
- Wrong cluster context
⚡ Quick fix
- List types: kubectl api-resources | grep -i name
- Install the CRD/operator
- Clear the cache: rm -rf ~/.kube/cache
Detailed fix by platform
Kubernetes
- bash
kubectl api-resources | grep -i cert rm -rf ~/.kube/cache/discovery
How to diagnose
- Types — kubectl api-resources
- Context — Right cluster?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- AlreadyExists Error from server (AlreadyExists): ... already exists
- Forbidden Error from server (Forbidden): pods is forbidden: User "x" cannot list resource "pods" in API group "" in the namespace
- gke-gcloud-auth-plugin not found kubectl: error: executable gke-gcloud-auth-plugin not found — it looks like you are trying to use a client-go credential plugin that is not installed
Most viewed in Kubernetes
- cannot re-use a name that is still in use Error: INSTALLATION FAILED: cannot re-use a name that is still in use
- error converting YAML to JSON error converting YAML to JSON: yaml: line 12: did not find expected key
- FailedCreatePodSandBox Failed to create pod sandbox: plugin type="calico" failed (add): ... (FailedCreatePodSandBox)
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 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.
Report a correction or suggest an improvement
Last updated 13 Oct 2026