Kubernetes deprecated API migration before upgrades

Before a self-managed Kubernetes upgrade, every manifest, Helm chart, operator and admission policy that uses an API removed in the target release needs to be found, fixed and tested. This page covers how to scope that work, the upgrade path and what drives its effort.

On this page

Why deprecated API migration comes before every Kubernetes upgrade

A self-managed cluster that has to move to a newer minor release is only safe to upgrade once every manifest, Helm chart and operator it runs is known to work against the target API set. Workloads often call APIs that the target release removes, and the control plane will not warn you about them at the moment you upgrade. Deprecated API migration is the pre-upgrade work that decides whether the upgrade is safe, because it finds those calls first, while the old and new versions are still both running and you can still roll back.

The supported path is one minor version at a time. Kubernetes maintains the three most recent minor releases, and as of September 2026 these were 1.37 (end of life October 28, 2027), 1.36 (June 28, 2027) and 1.35 (February 28, 2027), according to the Kubernetes releases page. Releases arrive roughly every 14 weeks, so a cluster that falls behind by two or three releases will be moving across several sets of API removals at once. Confirm the current support table on the release page before you set a target, because the dates above are a snapshot.

Plan the migration as a gate in the upgrade schedule, not as a cleanup task. Inventory every object kind your clusters serve, check which ones the target release removes, and assign an owner to each manifest, chart and operator that depends on them. Ask your platform team and each application owner to confirm which Helm releases and operators they deploy, because those often render old API versions even when your own YAML is current. Treat an unresolved removed API as a blocker for that hop, not a warning to revisit later.

What changes between minor releases and what each change asks of you

This table compares the kinds of change that arrive between minor releases and the action each one asks of you before you upgrade. Read each row against your own inventory of manifests, charts and operators, because the specific API removals for your target version must be confirmed in the official release notes and deprecation guide. The main takeaway is that deprecation warnings and removed APIs need a check before the control plane moves, not after.

ChangeImpactAction needed
externalIPs deprecation warnings (1.35 to 1.36)Services using externalIPs may return deprecation warnings in the 1.36 cycle, signaling future removal.Search manifests and Helm values for externalIPs, record each use, and plan a replacement before the field is removed.
gitRepo volume plugin removal (1.36)Pods that mount gitRepo volumes will fail to run on a 1.36 cluster.Find every gitRepo volume in workloads and charts, replace it with an init container or a sidecar that clones the repository, and test before upgrading.
Newly stable features (1.35 to 1.36)Features that graduate to stable can change default behavior or become the expected configuration.Review the release notes for newly stable features, compare them with your cluster configuration, and adjust settings where defaults differ.
APIs removed in the target releaseManifests, Helm charts and operators that call a removed API version will be rejected or stop reconciling after the upgrade.Confirm the exact removed API list for your target version against the official release notes and deprecation guide, then scan your estate for those versions.
Version skew policykube-apiserver must move one minor version at a time, and kubelets may be up to three minor versions older than the API server.Plan each hop in order, upgrade the API server first, and confirm that node and add-on versions stay within the allowed skew at every step.
Roughly 14-week release cycleNew minor releases arrive about three times a year, so a cluster can fall behind quickly.Schedule a recurring deprecation scan each release cycle so manifest and operator changes are found before each upgrade window.

How the migration work flows from discovery to a verified upgrade

The flow starts by inventorying every source that can hold a removed API: Git manifests, Helm releases, the live cluster, and operators and admission webhooks. Findings are classified against the target release, then fixed and re-rendered. The fixed set is tested on a cluster running the target version, and the production upgrade is gated on a clean result. Any remaining deprecated usage sends the work back to fixing, so the gate only opens when the deprecation guide check and the test cluster agree.

Discovery, fixing, testing and the production gate for removed API usage.

Where deprecated APIs hide in a cluster and how to find them

Manifests in Git look current because someone reviewed them when they were written, but a repository only shows what it contains and says nothing about what the cluster will apply. Kustomize makes this harder because the apiVersion you need is often spread across base files, patches and generators that no single file shows in full. Render each overlay first, then scan the output, since a patch can change the kind or apiVersion after the base file was read.

  • Every overlay, rendered: run kustomize build against each environment overlay and scan the output, not only the source files.
  • Helm output committed as YAML: vendored chart renders stored in Git keep their old apiVersions until someone regenerates them.
  • Unused directories: old folders still referenced by a pipeline or a GitOps application can deploy on the next sync.
  • Patches and generators: check patch targets and generated resources for kinds whose APIs changed.

Confirm which branches and paths each GitOps controller syncs, and treat the rendered output of those paths as the authoritative list of what will be applied.

What to prepare before touching manifests

Deprecated API fixes are only safe when the cluster can be restored, the target behavior can be tested and every change can be reviewed. The six preparation steps below connect those three needs, and each one should be finished before the first manifest is edited.

Take and test an etcd snapshot

Save a snapshot of the cluster state with etcdctl snapshot save before any change, then verify it with etcdutl so you know the file can be read. A snapshot you have never restored is a hope, not a backup. Confirm which node holds the snapshot, who can run a restore, and that the file is copied off the control plane host. Record the etcd version alongside it.

etcd operations docs

Inventory customizations and add-ons

List every controller, webhook, CRD, operator and Helm release that talks to the API server, since these are where removed APIs usually hide. Include admission webhooks and custom schedulers, which can break even when your own manifests are clean. Note the version of each add-on and whether its vendor publishes a release that supports the target Kubernetes version. Confirm that answer with each vendor rather than assuming it.

Build a test cluster on the target version

Create a non-production cluster on the target release, using the same configuration, add-ons and admission policies as production. Apply your fixed manifests and Helm releases there first and watch for warnings and rejections. A test cluster that differs in its add-on set will hide the failures you most need to find. Keep it running until the production upgrade is finished.

Confirm the image registry is reachable

If the cluster runs without internet access, confirm that every control plane image and add-on image the target version needs is present in a registry the nodes can reach. Use kubeadm config images list to produce the list and pull the images before the window opens. Point --image-repository at the private registry and test pulls from every node. Missing images are a common reason an upgrade stalls midway.

kubeadm init reference

Write a rollback plan with named owners

Define the conditions that trigger a rollback, such as failed API calls, unhealthy add-ons or a broken admission webhook, and who makes that call. Write the steps for restoring the etcd snapshot and for reverting manifests in Git. Assign owners for the application teams, the platform team and the change approver, and confirm they have access during the window. A rollback plan nobody has rehearsed will be improvised under pressure.

Keep manifests in version control

Store every manifest, Helm values file and operator configuration in Git so each deprecated API fix is a reviewable commit. Tag the state before the migration so you can compare and revert. Require a review on every change that touches a workload's API version, and record which fixes reached which cluster. This turns the migration into an auditable record instead of a set of manual edits.

How the migration and upgrade sequence runs, with checks and rollback points

This sequence finds every object that depends on an API removed in the target release, fixes it in source control, proves the fixes against a target-version cluster, and only then moves the control plane and nodes, with a restore point at each stage.

  1. Inventory deprecated API usage in the live cluster

    The platform engineer lists the API groups and versions the cluster currently serves and records which objects still use them. Start from the deprecation guide for the target release and the API server's deprecated API metrics and audit events, then run a dedicated scanning tool against the live cluster to collect every object, including Helm release manifests and custom resources. Confirm the tool version and install method before relying on its output. Done means each finding has a resource kind, namespace, owner and the removed version it depends on, and the list is saved as a baseline for later comparison.

  2. Render Helm charts and manifests to find hidden usage

    Helm charts, Kustomize overlays and GitOps repositories often hold deprecated versions that never appear in the live cluster until the next deploy. The platform team renders every chart with the values used in each environment and runs the same scanning approach against the rendered output, then records each affected template in the repository. Done means every chart and overlay that renders a removed API version is listed by file path, and the rendered output for each environment is stored as an artifact.

  3. Convert or rewrite affected objects in source control

    Engineers update each affected manifest to the supported API version, checking the schema differences in the deprecation guide, such as renamed or required fields. Where a conversion is mechanical, they may use kubectl convert, a plugin that is not part of every kubectl install, so confirm availability for your version and install method first. Changes go through code review in the same repository that holds the source manifests. Done means each finding has a reviewed commit that changes the version and any dependent fields, and no change is applied directly to the cluster.

  4. Fix operators, CRDs and admission webhooks

    Operators and custom resource definitions often serve or consume removed APIs, and a conversion that looks correct in a manifest can still fail if the controller expects the old schema. The platform team checks each operator's release notes and compatibility matrix against the target release, upgrades operators to versions that support it, and confirms CRD storage versions and conversion webhooks are healthy. Done means every operator and CRD in the inventory is on a version listed as supporting the target release, or the owning team has a dated plan for each one.

  5. Run server-side dry runs against a target-version test cluster

    Before touching production, the team builds or reuses a test cluster running the target release, restores or seeds it with the same CRDs and operator versions, and applies the rendered manifests with server-side dry runs. The dry run asks the API server to validate each object against its schema and admission policies without persisting it. Done means every rendered object validates on the target version with no errors, and any warnings are triaged and either fixed or accepted in writing by the owner.

  6. Verify no deprecated usage remains in the live cluster

    Once the source fixes are merged and deployed, the team reruns the live scan and compares it to the baseline from the first step. They also check the API server's metrics for requests to removed versions and review audit logs for clients still calling them, including CI jobs, backup tools and monitoring agents that the inventory may have missed. Done means the live scan is clean for every removed version, the request counters for those versions have stopped rising, and the remaining owners of any exceptions have signed off.

  7. Snapshot etcd and upgrade the control plane first

    Before changing any control plane component, the platform team takes an etcd snapshot with etcdctl snapshot save, verifies it, and stores it outside the cluster. The snapshot is the restore point for the control plane: if an upgrade fails, the etcd data can be restored with etcdutl on a rebuilt control plane. Then the team upgrades kube-apiserver one minor version at a time, followed by kube-controller-manager, kube-scheduler and kubelets, according to the version skew policy. Done means every control plane component reports the target version, the cluster health checks pass, and the snapshot has been confirmed as restorable in a test environment.

  8. Upgrade worker nodes and recheck after each batch

    Worker nodes move after the control plane, in batches, with workloads drained and disruption budgets respected so services stay available. After each batch, the team confirms nodes are Ready, system pods are healthy, and no new API errors appear in the logs or metrics. Rollback for a node batch means cordoning the batch and keeping the previous kubelet version on the remaining nodes, which the skew policy permits within its limits. Done means every node reports the target kubelet version and the post-upgrade checks in the runbook have passed for the final batch.

How to test the migration and roll back when a workload breaks

A dry run proves only that the API server accepts the new API version, not that the workload behaves correctly on it. Test the migration against representative workloads in a staging cluster built to the target release. Include a Helm release from each chart family you run, a workload that depends on a custom resource, and one that uses an operator, since operators often fail on schema or field changes that a server-side dry run never touches. For each operator, confirm in its release notes that it supports the target Kubernetes version and that its reconciliation loop still works after the migrated objects are applied. Before and after the change, capture object state for each affected namespace (replica counts, status conditions, events, and the fields that moved to a new version) and diff the two snapshots. A clean diff with healthy pods is the evidence you need, and a missing field is the most common silent failure.

Rollback is narrower than most runbooks assume, so plan each path before the upgrade starts. A Helm release can be rolled back with helm rollback only if its previous revision still renders on the target version. If the old revision uses a removed API, the rollback fails at the same point the upgrade would have, so you must migrate the chart and keep its history consistent with that plan. Restoring etcd from a snapshot is the other option, but it reverts the entire cluster state, including workloads, secrets and objects created after the snapshot, and it is not a way to undo one application. For a partial rollback, reapply the last known good manifests from version control, scale down or pause the affected operator first, and confirm with your platform owner which resources can be reverted in isolation. Check the Kubernetes version skew policy before deciding whether a mixed-version state is tolerable while you investigate.

What makes deprecated API migration take longer

This table compares the factors that expand or shrink a deprecated API migration and what to check for each one. Read it before estimating work, because the same Kubernetes version jump can take a small team a few days or a large estate many weeks depending on these inputs. The main takeaway is that the count of manifests matters less than how many of them are owned by third parties and how they are deployed.

DriverEffect on effortWhat to check
Manifests and Helm charts in GitEffort rises with the number of unique resources and the number of chart versions in use, since each one needs a scan and a fix.Count distinct API groups and versions in the repositories, and note which charts are vendored, forked or pulled from upstream.
Third-party operators and CRDsEach operator can block the upgrade on its own, and an operator without a release for the target version may force a replacement.Confirm for each operator whether a release supports the target Kubernetes version, and check its own deprecation notes.
Vendor or community chart maintenanceUnmaintained charts often carry removed APIs that you must patch yourself, which moves work from upgrade planning into chart forking.Check the chart's last release date, its issue tracker for API removal reports, and whether a newer version exists upstream.
Custom admission webhooksWebhooks can reject or mutate objects written in the new API version, so a webhook failure can stall rollout after the control plane is upgraded.List every validating and mutating webhook, its failure policy, and whether its server supports the API versions you will serve.
GitOps and CI pipelinesPipelines that apply manifests directly with an old client can reintroduce removed APIs, and drift between Git and the cluster hides what is actually deployed.Verify that the Git state matches the live cluster, and that CI runs schema validation against the target version before merge.
Number of clusters and environmentsEvery cluster and environment repeats the scan, the fixes and the verification, and staging often differs from production in add-ons.Inventory versions and installed add-ons per cluster, and decide whether one set of fixes will be promoted through all environments.
Internet access from the clusterWithout internet access, updated chart and image sources must be mirrored first, which adds a step before any fix can be deployed.Confirm how charts, images and CRD bundles reach the cluster, and whether the mirror holds the versions required by the target release.

Questions buyers ask before hiring help with API migration

What does deprecated API migration work cost, and what drives the quote?

The quote follows from the written scope, and DeployOpen does not publish a price list. The main cost drivers are the number of manifests, Helm charts and operators in the inventory, how many of them pull from third-party sources that need upstream updates, and how many target releases the cluster must cross. Costs are mostly one-time for the analysis and fixes, but a clean inventory also reduces the work at every later upgrade, which arrives on a cycle of about 14 weeks. Ask the provider to price the inventory, the fixes, the retest and any hand-off to your team as separate line items, and to state which chart or operator updates are excluded.

How long does API migration take before a Kubernetes upgrade?

Duration depends on how much of the estate uses removed APIs, how many owners must review changes, and how many charts are vendor-supplied. Kubernetes releases come about three times per year on a cycle of roughly 14 weeks, so the work is usually scheduled against the target release window rather than treated as open-ended. Patch support for 1.19 and newer lasts about one year in total, including the pre-release period, which gives a fixed horizon for planning. Ask for a timeline that separates the inventory, the fix sprint, the staging upgrade and the final retest.

What does our team need to provide for the migration work?

You need read access to the cluster and to the Git repositories or chart sources that generate its manifests, plus a named owner for each application that will need changes. Your team must also confirm which workloads are production-critical, which maintenance windows apply, and where a staging cluster with a matching version is available for testing. Operators and CRDs often need a vendor's compatibility matrix, so someone on your side must be able to request it. Missing owners are one of the most common reasons these projects slip, so confirm them before the scope is signed.

Can our in-house platform team do the API migration without a partner?

Yes, if the team has the time, a staging cluster and familiarity with the Kubernetes deprecation guide. The work is mostly systematic: find every object that uses an API removed in the target release, convert or rewrite it, and verify that the change is accepted and behaves correctly. The harder part is coordination with application and chart owners, and that effort is often underestimated. A partner is most useful when the inventory is large, several target releases must be crossed, or the team cannot free engineers for a fixed period. Compare both options on the same written list of tasks.

How does DeployOpen scope API migration in writing?

DeployOpen scopes the work in writing before it starts, listing the clusters, the target Kubernetes release, the sources to inventory (live cluster, Git repositories, Helm releases and installed operators), the deliverables and the timeline. The written scope also states what is excluded, such as fixes inside third-party charts that are not under your control. Deliverables typically include an inventory of affected objects, a change list per owner, verified changes and a retest report. Ask that acceptance criteria be attached to each deliverable so both parties agree on when the work is complete.

What happens to findings that need a vendor or Helm chart update?

Some removed APIs live inside vendor charts or operators, so the fix belongs upstream, and the findings are recorded with the chart name, the current version and the first version that removes the API. The usual options are to upgrade to a chart version that supports the target release, to pin a version that the vendor supports, or to accept a temporary deferral with a documented risk. DeployOpen does not control third-party releases, so the scope should say who tracks those updates and how the upgrade is blocked or sequenced until they are available. Check the vendor's compatibility statement before you agree to a date.

Which engineering checks confirm an API migration is complete before the upgrade?

Start with a server-side dry run of each changed manifest against the target API version, then check that the cluster reports no requests to removed APIs in its audit logs over an agreed period. Confirm that every Helm release and operator reports a version that supports the target release, and that the staging upgrade completes with the same workloads healthy. Keep the version skew rules in mind, because the kube-apiserver must be upgraded one minor version at a time. Record the results in the retest report so the upgrade plan can reference them.

How DeployOpen scopes, delivers and supports API migration before an upgrade

DeployOpen treats deprecated API migration as a scoped piece of work that comes before any version change. We inventory what your clusters, manifests, Helm charts and operators actually call, fix what the target release removes, and hand over evidence that the cluster is ready to upgrade.

How we scope

  • Confirm the current and target Kubernetes minor versions, and the full list of clusters in the upgrade wave.
  • Agree which sources are in scope: Git repositories, live cluster objects, Helm releases and installed operators.
  • Write the scope, deliverables and timeline down before work starts, since most engagements are fixed-scope.

How we build

  • Scan live clusters and repositories for API versions removed in the target release, then record each finding by owner.
  • Convert manifests with kubectl convert where it fits, and rewrite them by hand where the new schema differs.
  • Test changed charts and operator versions against a staging cluster on the target release before production changes.

How we hand over

  • Deliver a written inventory of affected objects, the fix applied to each, and any items left for your teams to decide.
  • Provide the updated manifests, chart values and version pins in your own version control, with change notes.
  • Walk your platform and application teams through the upgrade checklist, including the API checks to repeat before each later minor release.

How we support

  • Offer ongoing support, upgrades and continuous testing as retainers for teams that upgrade on the release cycle.
  • Re-run the deprecated API scan before each future minor upgrade, since the removal list changes from release to release.
  • Confirm with your team, before engagement, who owns the upgrade decision, the change window and rollback approval.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.