Deprecation and add-on compatibility
Deprecation is a migration signal
A deprecated API can still be served until its documented removal. Once removed, clients using that API endpoint must change. Existing objects may remain accessible through a newer served version, but old manifest syntax and client requests can fail. Read the deprecation guide and release notes for each intermediate target rather than assuming every old API disappears at the next release.
Deprecated and served → migration required before removalRemoved endpoint → update clients and manifests; verify newer schemaAudit historical manifests and clients
Search Git manifests, rendered Helm and Kustomize output, operators, automation and API clients. Deprecated API request metrics and audit annotations provide runtime clues, but absence of recorded calls during a short window is not proof of absence. Discover target API availability and compare fields and defaults. A historical audit is useful practice even when the current cluster has already moved beyond that API.
Historical example: policy/v1beta1 PodDisruptionBudget → policy/v1 (removed old endpoint in 1.25)autoscaling/v2beta2 HPA → autoscaling/v2 (removed old endpoint in 1.26)Migrate semantics, not only apiVersion
A policy/v1 PodDisruptionBudget with an explicitly empty selector matches every Pod in its namespace; the old policy/v1beta1 empty selector matched none. A missing selector does not have the same effect as an explicitly empty one. Migrate to an intentional label selector and review the matching workloads. HPA metric configuration also changed: an old targetAverageUtilization field becomes the nested target.averageUtilization with type Utilization in autoscaling/v2. Test the rendered result against the target schema and intended behavior.
apiVersion: policy/v1kind: PodDisruptionBudgetmetadata: name: catalog namespace: lab-maintenancespec: minAvailable: 2 selector: matchLabels: app: catalogCheck add-ons across the transition
Maintain a compatibility matrix for CNI, CSI, DNS, ingress or Gateway controllers, metrics adapters, admission webhooks and operators. Record exact installed and proposed versions, supported Kubernetes ranges, CRD migration requirements and upgrade order from each project. Some releases need an add-on upgrade before the control plane; others must follow it. If evidence is missing, classify the transition as unknown and block the plan until confirmed. A provider-managed add-on may have its own lifecycle and upgrade mechanism.
Example fictional add-on: network-driver A supports 1.36 onlyBridge release B supports 1.36 and 1.37 → review B upgrade before control-plane transitionThis matrix is synthetic, not a vendor recommendation.Require independent post-upgrade checks
Compare pre- and post-upgrade evidence: API discovery, webhooks, DNS, cross-node traffic, policy enforcement, storage attach and mount, monitoring and application smoke tests. Verify actual user-visible outcomes instead of treating a green control-plane health endpoint as proof of full recovery. A managed cluster may enforce narrower version paths and control-plane rollback rules; consult its dated lifecycle documentation before any real change.
API healthy ≠ DNS healthy ≠ volumes mounted ≠ application correctApprove next maintenance step only when agreed checks pass.Practice and verification
Use api-cases.json and addon-cases.json to classify historical API migration and fictional add-on compatibility. Explain the empty-selector hazard. Use only the offline fixtures in lab-fixtures/cluster-maintenance. State which checks require a real authorized cluster.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Deprecation and add-on compatibility — knowledge check
Audit removed APIs, client dependencies and add-on compatibility before changing Kubernetes versions.
A deprecated endpoint is removed in the target release. What is required?
What does an explicitly empty policy/v1 PDB selector match?
A scan finds no deprecated calls in one hour. Is migration proven?
An add-on supports the source but not target version. What next?
API health passes but DNS smoke tests fail. What should happen?