This repo shows an example for rolling out a complete HDInsight on AKS environment via Terraform.
This includes rollout of the following resources:
- HDInsight Cluster Pool
- HDInsight Cluster (only
trino
,flink
andspark
) - Azure Storage Account
- Azure Key Vault
- Virtual Network including a default subnet
- Log Analytics Workspace
- Azure SQL Database
- User Assigned Identity
Make sure you have the Azure CLI and Terraform installed.
- Go to
terraform
folder - Copy
terraform.tfvars.example
toterraform.tfvars
- Update
terraform.tfvars
with your desired values - Run Terraform
$ terraform init $ terraform plan $ terraform apply
See notes below for additional info:
- Change
enable_trino_cluster
,enable_flink_cluster
andenable_spark_cluster
values to deploy any of those clusters in the pool. - Check Outbound traffic for HDI on AKS in case you want to add nsg to the subnet.
- The deployment was tested on wsl (ubuntu).
- These options not available yet: autoscaleProfile, prometheusProfile, scriptActionProfile.