No matches for kind in version
kubectl couldn’t map the manifest’s apiVersion and kind to anything the API server serves.
Diagnose
Section titled “Diagnose”kubectl api-resources | grep -i ingress # which groups and versions serve this kindkubectl api-versions | grep networkingUsual causes
Section titled “Usual causes”| Cause | Fix |
|---|---|
| The API version was removed in a Kubernetes upgrade | Move to the served version (the Kubernetes deprecation guide lists the replacement for each), and check that fields haven’t changed |
A CRD isn’t installed (kind: Certificate, kind: HTTPRoute) |
Install the operator or CRDs first. In Helm or Argo CD, order CRDs before the resources that use them |
| The CRD is installed at a different version | Use a version the CRD serves: kubectl get crd <name> -o jsonpath='{.spec.versions[*].name}' |
Find removed APIs before an upgrade rather than after: scan manifests and charts with a tool like pluto, and check the API server’s apiserver_requested_deprecated_apis metric for live usage.
Read next: Upgrades.