PoC on AKS cluster deployment using Terraform
- Client ID and Client Secret for Azure Service Principal for AKS
- Terraform
v0.11.13
- Azure CLI
v2.0.x
kubectl
if not installed already- See
az aks install-cli -h
- See
- Checkout the repo
- Log into Azure
az login
- From project root, run the following:
terraform init
terraform plan
terraform apply
- Deploys an Azure vNet and a 2 node AKS clusters using Azure-CNI
- Connect to AKS
terraform output kube_config > ~/.kube/config
oraz aks get-credentials -g <resource-group> -n <aks-cluster-name>
kubectl get nodes
# Verify 2 nodes deployed via Terraform