πŸ“šBook Signing at KubeCon EU 2026Meet us at Booking.com HQ (Mon 18:30-21:00) & vCluster booth #521 (Tue 24 Mar, 12:30-1:30pm) β€” free book giveaway!RSVP Booking.com Event
Configuration beginner ⏱ 15 minutes K8s 1.28+

Kubernetes API Deprecation Migration Guide

Migrate deprecated Kubernetes APIs before cluster upgrades. Detect deprecated resources with pluto, kubent, and kubectl convert.

By Luca Berton β€’ β€’ πŸ“– 5 min read

πŸ’‘ Quick Answer: Migrate deprecated Kubernetes APIs before cluster upgrades. Detect deprecated resources with pluto, kubent, and kubectl convert.

The Problem

This is a critical skill for managing production Kubernetes clusters at scale. Without it, teams face operational complexity, security risks, and reliability issues.

The Solution

Before any upgrade, scan both live objects and source manifests for APIs removed in the target version. pluto detects deprecated and removed apiVersions:

# Scan live cluster objects against a target Kubernetes version
pluto detect-all-in-cluster --target-versions k8s=v1.33

# Scan Helm releases and raw manifests in your repo
pluto detect-helm --target-versions k8s=v1.33
pluto detect-files -d ./manifests --target-versions k8s=v1.33

Convert an out-of-date manifest to a supported apiVersion with kubectl convert:

# Example: Ingress networking.k8s.io/v1beta1 -> v1
kubectl convert -f old-ingress.yaml \
  --output-version networking.k8s.io/v1 > new-ingress.yaml
kubectl apply -f new-ingress.yaml

Always fix the source of truth (Helm charts, Kustomize bases, GitOps repos) β€” not just the live object β€” so the deprecated API does not reappear on the next reconcile.

Common Issues

Troubleshooting

Check logs and events first. Most issues have clear error messages pointing to the root cause.

Best Practices

  • Follow the principle of least privilege for all configurations
  • Test in staging before applying to production
  • Monitor and alert on key metrics
  • Document your runbooks for the team

Key Takeaways

  • Essential knowledge for Kubernetes operations at scale
  • Start simple and evolve your approach as needed
  • Automation reduces human error and operational toil
  • Share learnings across your team
#api-deprecation #migration #upgrade #pluto #kubernetes
Luca Berton
Written by Luca Berton

Principal Solutions Architect specializing in Kubernetes, AI/GPU infrastructure, and cloud-native platforms. Author of Kubernetes Recipes and creator of CopyPasteLearn courses.

Kubernetes Recipes book cover

Want More Kubernetes Recipes?

This recipe is from Kubernetes Recipes, our 750-page practical guide with hundreds of production-ready patterns.

Luca Berton Ansible Pilot Ansible by Example Open Empower K8s Recipes Terraform Pilot CopyPasteLearn ProteinLens