Applications & Kubernetes · Guide

Kubernetes Upgrade and API Lifecycle Management

Defines version, deprecation, add-on, node, workload, and rollback practices for safe Kubernetes lifecycle management across managed cloud platforms.

Document class: Applications & Kubernetes implementation guide Normative terms: MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY are requirements levels. Applicability: Kubernetes, node images, operating systems, APIs, add-ons, admission webhooks, controllers, workloads, and fleet upgrade lifecycle. Exception process: Deviations require a documented risk assessment, compensating controls, named risk owner, and expiry date.

Control fieldValue
Document IDAPP-16
OwnerCloud Center of Excellence
Review cycleAt least annually and after material cloud-service, Kubernetes, security, or operating-model changes
EvidenceVersion and deprecation inventory, compatibility matrix, rollout records, workload readiness, post-upgrade tests, and rollback or recovery evidence

Decision in brief: Upgrade Kubernetes through a supported, tested sequence that covers APIs, nodes, add-ons, webhooks, workloads, rollback limits, and fleet timing.

Purpose

Kubernetes upgrades affect the control plane, nodes, add-ons, APIs, admission webhooks, controllers, and workloads. Managed Kubernetes reduces infrastructure work but does not validate application compatibility or provide a universal downgrade. This article defines a repeatable lifecycle process.

Lifecycle flow

flowchart LR A[Version and deprecation inventory] --> B[Compatibility testing] B --> C[Development cluster] C --> D[Staging canary] D --> E[Production wave 1] E --> F[Remaining clusters] F --> G[Post-upgrade validation] G --> H[Retire old nodes and APIs]

Version policy

  • Maintain a supported-version matrix for Kubernetes, node images, operating systems, container runtimes, CNI, CSI, DNS, ingress/gateway, policy, observability, GitOps, and operators.
  • Track provider support and forced-upgrade dates, and upstream patch support, which runs for approximately 14 months per Kubernetes minor release.
  • Limit version skew between environments so staging remains representative.
  • Assign owners and target dates for every deprecated API and unsupported add-on.
  • Prefer regular small upgrades over emergency multi-version jumps.

API deprecation management

Scan source, rendered manifests, Helm charts, GitOps output, live objects, audit logs, and CRDs for removed or deprecated APIs. Update schemas and clients before the cluster upgrade. Confirm stored custom-resource versions and conversion webhooks remain available.

Under the Kubernetes deprecation policy, a deprecated GA API remains served for at least 12 months or three minor releases, whichever is longer, and a deprecated beta API for at least nine months or three minor releases. Confirm the exact windows against the current policy before setting removal dates.

An object that currently exists may continue running while a new deployment or update fails. Test create, update, delete, rollback, and restore operations—not only current pod health.

Pre-upgrade controls

  1. Confirm supported source and target versions and upgrade path.
  2. Review provider and Kubernetes release notes.
  3. Validate APIs, webhooks, operators, drivers, and workload dependencies.
  4. Check quotas, disruption budgets, capacity headroom, and zone availability.
  5. Verify backups, recovery points, break-glass access, and support escalation.
  6. Freeze unrelated platform changes during the upgrade window.
  7. Define success, pause, abort, and forward-recovery criteria.

Upgrade sequence

Upgrade non-production first, then a representative production canary, then controlled waves. For each cluster:

  1. Validate control-plane and add-on compatibility.
  2. Upgrade the control plane according to provider requirements.
  3. Add or rotate a canary node pool with the target image.
  4. Drain workloads while respecting disruption and stateful-service rules.
  5. Validate scheduling, networking, storage, DNS, identity, policy, and telemetry.
  6. Expand the new pool and retire old nodes only after stabilization.

Do not rely on rollback of the control-plane version. Prepare forward recovery, node-pool replacement, configuration revert, workload rollback, and cluster rebuild options.

Application readiness

Applications must tolerate pod eviction, node replacement, mixed node versions within supported skew, connection draining, DNS changes, and temporary capacity loss. Disruption budgets must protect availability without blocking necessary maintenance.

Test admission and mutation, service-account tokens, projected volumes, probes, autoscaling, persistent volumes, topology, and security contexts on the target version.

Multi-cloud mapping

PlatformLifecycle considerations
AKSKubernetes support policy, node image upgrades, maintenance configuration, workload identity and networking add-ons
EKSVersion support tiers, managed add-ons, AMI or node-group lifecycle, CNI compatibility
GKERelease channels, maintenance exclusions, node auto-upgrade, feature availability
OKESupported versions, node-pool images, CNI and add-on compatibility

Standardize gates and evidence while allowing provider-specific orchestration.

Fleet lifecycle calendar

Maintain a rolling calendar that includes provider support deadlines, target control-plane versions, node-image refresh, add-on releases, operating-system retirement, certificate rotation, and application remediation milestones. The calendar should reserve time for discovery, non-production testing, canary rollout, stabilization, and defect correction before the provider deadline.

Clusters that cannot meet the standard cadence require an approved exception with business owner, technical owner, compensating controls, and retirement date. Extended support, where available, is a temporary risk treatment rather than a permanent lifecycle strategy.

Compatibility contract

Every platform add-on and application owner should publish the versions they support and the evidence used. The contract should cover:

  • Kubernetes API versions used by manifests and clients.
  • Minimum and maximum Kubernetes versions.
  • CNI, CSI, ingress or Gateway, service mesh, policy, GitOps, backup, and observability compatibility.
  • Container runtime and operating-system assumptions.
  • Webhook and CRD conversion requirements.
  • Storage and database version dependencies.

“Runs on Kubernetes” is not a compatibility statement.

Upgrade test matrix

The test plan should include create, update, scale, restart, drain, failover, rollback, backup, and restore operations. Validate at least:

  • Admission and policy decisions.
  • Workload identity and projected token behavior.
  • DNS, service routing, NetworkPolicy, ingress, and egress.
  • Volume attach, mount, snapshot, expansion, and rescheduling.
  • Autoscaling and metrics APIs.
  • GitOps reconciliation and Helm or Kustomize rendering.
  • Operator reconciliation, finalizers, and CRD conversion.
  • Logging, metrics, traces, and audit export.
  • PodDisruptionBudget behavior under actual node drain.

A healthy existing pod is weak evidence because removed APIs and incompatible admission behavior may appear only on the next change.

Node-image and operating-system lifecycle

Kubernetes version and node image are separate lifecycle dimensions. Establish a cadence for security image refresh even when the control-plane version does not change. Use canary node pools, cordon and drain, and measured workload redistribution. Confirm daemon sets, device plugins, security agents, and storage drivers on the new image before broad rollout.

Track operating-system end of support and container-runtime changes, such as the removal of dockershim in Kubernetes 1.24. A supported Kubernetes control plane can still run unsupported nodes or add-ons.

Emergency upgrade procedure

When a forced deadline or critical vulnerability compresses the normal process, retain minimum gates: backup verification, deprecated-API scan, representative non-production test, canary production cluster, pause criteria, support escalation, and post-change validation. Document skipped tests and create dated remediation actions. Urgency is not justification for an unbounded fleet-wide change.

Validation

  • Target versions are supported across control plane, nodes, add-ons, and applications.
  • Deprecated APIs are absent from source, rendered, and live resources.
  • CRDs and conversion webhooks support the target version.
  • Capacity and disruption budgets allow safe node rotation.
  • Backups and recovery procedures are current.
  • Non-production and canary production upgrades pass defined tests.
  • Network, storage, identity, policy, DNS, and telemetry are verified.
  • Provider events and workload SLOs remain healthy during stabilization.
  • Old nodes, images, API versions, and temporary exceptions are retired.
  • Evidence and lessons are recorded for the next wave.

Operational considerations

Maintain a fleet dashboard for versions, support deadlines, deprecated APIs, node-image age, add-on skew, failed drains, and blocked disruption budgets. Schedule recurring compatibility tests and notify application owners well before mandatory provider upgrades.

Operational boundaries and acceptance criteria

Before adopting this guidance, record the accountable service owner, supported environments, critical dependencies, data classification, and the operational tier. State which decisions belong to the platform team and which remain with the workload team; document any exception with a risk owner and expiry date. This prevents a reference pattern from being treated as a universal fit.

Define observable acceptance checks before rollout. Include a positive path, a denied or invalid request, a dependency failure, and recovery after the failure clears. Capture the configuration or command output that proves each check, along with the software and policy versions used. Make checks repeatable in a representative non-production environment, and ensure they fail closed when required evidence is missing.

For production changes, identify the safe rollback or forward-recovery action, the person authorized to invoke it, and the condition that triggers it. Confirm that monitoring, support ownership, capacity limits, and escalation contacts are in place before declaring the change complete. Review these assumptions after a material platform, provider, or regulatory change.

Workload failure domains and upgrade safety

Treat a cluster as a shared failure domain only when its identity, network, storage, and administrative boundaries match the workload's risk. Spread replicas across independent zones where available, use disruption budgets for voluntary maintenance, and keep readiness separate from liveness so a dependency outage does not trigger restart storms. Set CPU and memory requests from measured demand, then test limits under realistic load; throttling and memory pressure can make a nominally healthy pod unavailable.

Before changing Kubernetes or an add-on, compare deprecated API usage, admission policies, CSI and CNI compatibility, node-image support, and workload disruption. Upgrade a representative canary first, observe scheduling and error rates, and retain a tested rollback or node-pool replacement path.

References