Terraform definition for creating a Kubernetes cluster via Azure Kubernetes Service (AKS) with both a Linux and Windows node pool for testing purposes. You can then run hybrid workloads within your cluster like your CI/CD pipeline like described in my blog post (coming soon).
You need to install Terraform as well as the Azure CLI first. Then execute the following in the directory of the cloned repository:
az login # log in to your Azure account
terraform init # initialize terraform
terraform apply -auto-approve # provision infrastructureIn the variables.tf file you can find additional parameters which you can specify via -var resource_group=aksrg when running terraform apply.
After the deployment you get the kube_config as an output. Store it in ~/.kube/config on Linux or %userprofile%\.kube\config on Windows to use it as default:
terraform output kube_config > ~/.kube/config You can then interact with the Cluster with CLIs like kubectl and helm.