Production on AKSAKS operations
5 lessons · about 78 minutes of reading · Helmsman Pro
This page is the public course outline. Lessons, labs, tools and exams open after you sign in to your free account.
Sign in and start
In short
Operate AKS well: autoscaling, upgrades and maintenance windows, infrastructure as code and cost.
Before you start: Course 17.
What you'll learn
- Cluster autoscaler per pool with min/max and a tunable profile
- Accurate requests and PDBs make autoscaling sane
- Node auto-provisioning (Karpenter) chooses VM sizes and consolidates
- KEDA for event-driven and scale-to-zero; spot pools for interruptible work
- Kubernetes version upgrades versus node OS image upgrades
- Auto-upgrade channels (patch, stable, rapid, node-image) and node OS channels (SecurityPatch, NodeImage)
- Planned maintenance windows; surge and PDBs control disruption
- Check deprecations and add-on compatibility; no downgrades, so rehearse and plan blue/green
- Everything around the cluster in code: network, AKS, pools, ACR, Key Vault, identities, roles
- Plan in the PR, apply on merge with a federated identity
- Watch for forced replacements in plans
- Remote, locked, versioned state; Terraform builds clusters, GitOps fills them
Lessons
1. Scaling on AKS
Cluster autoscaler profiles, node auto-provisioning, KEDA and spot capacity.
Sign in to open the lesson
2. Upgrades and maintenance on AKS
Plan Kubernetes and node image upgrades with channels, maintenance windows, surge and PDBs.
Sign in to open the lesson
3. Infrastructure as code: Terraform and Bicep
Define AKS and its surroundings in code, review changes as plans, and keep state safe.
Sign in to open the lesson
4. Cost and reliability on AKS
Right-size, use the right capacity types, spread across zones, and measure cost per team.
Sign in to open the lesson
5. AKS storage, backup and recovery: CSI drivers, zones and restoring a namespace
Choose the right Azure storage for each workload, keep volumes working across availability zones, and back up and restore with Azure Backup for AKS or Velero, with restores you've actually tested.
Sign in to open the lesson
Common questions
Which expander picks the pool that leaves the least unused resources?
least-waste.
Which maintenance configuration name schedules node OS upgrades?
aksManagedNodeOSUpgradeSchedule.
Which Bicep command previews changes?
az deployment group what-if.
Name a tool for cost per namespace.
AKS cost analysis add-on or OpenCost.
Should I put databases on AKS at all?
Managed databases (Azure Database for PostgreSQL flexible server) remove most of this work; run databases on AKS when you need control or portability and have the skills to operate them.