`kubectl apply` fails with `error: resource mapping not found for name: "web" namespace: "" from "ingress.yaml": no matches for kind "Ingress" in version "extensions/v1beta1" ensure CRDs are installed first`.
BeginnerTroubleshootingControl plane, RBAC, webhooks and autoscaling
Answer
Likely causes → The manifest uses an API version that was removed (Ingress extensions/v1beta1 was removed in 1.22) or a CRD that is not installed in this cluster.
Diagnose →
kubectl api-resources | grep -i ingress
kubectl api-versions | grep networking
kubectl explain ingress --api-version=networking.k8s.io/v1 | head
Fix → Migrate the manifest to networking.k8s.io/v1 (note the new pathType and backend.service structure). For CRDs, install the operator/CRDs first. kubectl convert (plugin) helps with migrations.
Prevent → Run pluto or kubent in CI against manifests and Helm charts before every upgrade.
More on Control plane, RBAC, webhooks and autoscaling
A developer gets `Error from server (Forbidden): pods is forbidden: User "[email protected]" cannot list resource "pods" in API group "" in the namespace "payments"`.BeginnerA CI pipeline fails with `deployments.apps "api" is forbidden: User "system:serviceaccount:ci:deployer" cannot patch resource "deployments" in API group "apps" in the namespace "prod"`.BeginnerA user can `get pods` but `kubectl logs` fails with `cannot get resource "pods/log"` and `kubectl exec` fails with `cannot create resource "pods/exec"`.BeginnerCreating a RoleBinding fails with `is attempting to grant RBAC permissions not currently held`.IntermediateEvery `kubectl apply` fails with `Internal error occurred: failed calling webhook "validate.kyverno.svc-fail": failed to call webhook: Post "https://kyverno-svc.kyverno.svc:443/validate/fail?timeout=10s": context deadline exceeded`.AdvancedCreating a Certificate fails with `failed calling webhook "webhook.cert-manager.io": ... no endpoints available for service "cert-manager-webhook"`.Intermediate