- Terraform:
>= v0.15.0
- Configure Azure subscription
- The VPC must be exists
- The subnets must be exists
- Require
azure-cli
(how-to-install)
- Create Storage to save
.tfstate
- Modify
config.tf
with properly subscription_id
, storage_account_name
and resource_group_name
- Modify
aks.auto.tfvars
with your values
- Install all dependencies and providers:
terraform init
- Deploy:
terraform apply
config.tf
: providers, requirements and backend for Terraform
aks.auto.tfvars
: values for deployment
main.tf
: main file with AKS resource
outputs.tf
: output resources
variables.tf
: declare all variables with default values
# AKS
## GENERAL
aks_rg_name = "my-resource-group"
aks_cluster_name = "cluster"
aks_version = "1.19.7"
aks_nr_workers = 3
## WORKERS
aks_worker_volume_size = 100
- (Average) Complete deployment: ~10 minutes