Removed Kubernetes apiVersion Migration
Upgrade extensions/v1beta1, batch/v1beta1, policy/v1beta1, and networking.k8s.io/v1beta1 before cluster upgrades.
Root Cause
Kubernetes removes beta API groups on predictable release boundaries (1.16, 1.22, 1.25, 1.26); applying legacy manifests fails with no matches for kind.
How to Fix
- Update Deployment/DaemonSet/StatefulSet from extensions/v1beta1 or apps/v1beta2 to apps/v1.
- Update Ingress to networking.k8s.io/v1, CronJob to batch/v1, PodDisruptionBudget to policy/v1, and HPA to autoscaling/v2.
- Paste legacy manifests into McKube Manifest X-Ray and click Auto-Harden to upgrade apiVersion automatically.
Diagnostic Commands
kubectl api-resources --sort-by=name