Revised for Terraform AzureRM v2.1
Sample terraform script for AKS.
AKS deployment architecture with advanced features.
- Advanced networking (Azure CNI)
- Autoscale (preview)
- Multi-node pools (preview)
- Availability Zones (preview)
You need to set load_balancer_sku = "standard"
in network_profile
in order to use AZ.
Note: At the time of writing this, you need to manually register preview features in order to use multi-node pools and AZ. See documentation for more information
Sample AKS terraform script is located in this folder.
Please refer README for how to run terraform script.
Once create AKS cluster, run following CLI to get K8S config key
az aks get-credentials --resource-group $rgname --name $aksname
Run a sample image for test. Please refer terraform examples for more information
kubectl apply -f ./files/demo.yaml
az aks browse --resource-group $rgname --name $aksname
You need to run following CLI to access dashboard.
#kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard
To run GPU workload, please refer AKS GPU cluster documentation for more information