Skip to main content

Command Palette

Search for a command to run...

Azure AKS cluster from scratch using Terraform

Published
โ€ข1 min read
O

Generalizing Specialist - that's just hyperbole for "jack of all, master of some". Dev for 20+ years with curiosity still intact.

While working on creating training material on Azure IaC using Terraform, I created a small demo project to create an Azure AKS cluster from scratch and integrated it with Terraform Cloud. It came out quite nicely and therefore I thought I would share it with larger audience ๐Ÿ™‚.

Detailed instructions can be found on the repo README. You'll need your own Azure account and a subscription. The AKS cluster code is a local module and the created cluster will have the following features:

  • Nodes with Ubuntu OS
  • Azure CNI
  • Separate vnet and subnet
  • Single nodepool with autoscaling enabled
  • AKS managed Azure AD integration
  • System-assigned managed Identity
  • Cluster auto-upgrade enabled

Quick note about Terraform Cloud - if you haven't tried it yet, you should. It has a free plan for smaller teams up to 5 and provides a way to manage state remotely and securely.

Happy coding ๐Ÿค˜.