Course contentsShow
← Cloud and Infrastructure
Lesson 1501 of 2,98930. Managed Kubernetes ServicesFree lesson

AKS Cluster Upgrades and Maintenance

Understanding AKS upgrade process, supported versions, and maintenance windows.

AKS Cluster Upgrades and Maintenance

You'll learn how AKS manages cluster upgrades, version support policies, and maintenance windows to keep your Kubernetes environment secure and up-to-date.

Understanding the AKS Upgrade Process

Azure Kubernetes Service regularly releases new Kubernetes versions, security patches, and node image updates. Unlike managing your own cluster, AKS handles control plane upgrades automatically, but you control when node pools upgrade.

Think of it like smartphone updates: the operating system (control plane) can update independently from your apps (node pools), but both need coordination to work smoothly together.

Supported Kubernetes Versions

AKS supports N-2 minor versions of Kubernetes at any time. If the latest version is 1.28, AKS supports 1.28, 1.27, and 1.26. Older versions are automatically deprecated, giving you a window to upgrade before forced migration.

Azure notifies you well in advance when your version approaches end-of-support. Running unsupported versions leaves you without security patches and technical support.

Maintenance Windows

AKS allows you to schedule maintenance windows to control when disruptive operations occur. You can define:

  • Day and time preferences (e.g., Sundays at 2 AM)
  • Blackout periods for critical business events
  • Auto-upgrade channels (patch, stable, rapid, or none)

During maintenance, AKS cordons nodes, drains pods gracefully, applies updates, and brings nodes back online. Pod disruption budgets ensure application availability during this process.

Upgrade Best Practices

Always upgrade the control plane first, then node pools. Test upgrades in non-production environments. Monitor application health using the AKS Monitoring tools you learned earlier, and ensure your liveness and readiness probes are properly configured.

Key Takeaway: AKS simplifies Kubernetes upgrades by managing the control plane, providing version support windows, and offering configurable maintenance schedules to minimize disruption while keeping your cluster secure and current.