In this post we use a resource group to demo a blue green deployment scenario for AKS with Terraform IaC, to understand the steps required for successful pipline implementation. Same pattern can be applied to deploy other Azure resources well. Instead of two resource groups used here to run demo faster, actual implementation can be two AKS clusters (blue and green) withing a single resource group or in two resource groups. Full pipeline with Terrafrom IaC for AKS blue greeen with application deployments will be dicussed in a future post(s). For now let's loo at the example blue green, using resource group to represent AKS cluster, which is used to validate blue green deployment algorithm for AKS.
Full algorithm test information and terraform files available in below links.
- ReadMe file describing algorithim and test steps in detail.
- Excel file containing algorithm steps and variable behaviour which will help to understand the algorith decribed in ReadMe.
- Terraform files used to simulate the AKS deployment using a resource group.