Based on the following Terraform example.
Assumes:
- resource group already exists
- service account has been created with appropriate role and permissions to create an AKS cluster
- an SSH private/public key-pair using RSA algorithm has been created
cp terraform.tfvars.sample terraform.tfvars
Amend the values for
aks_resource_group
enable_logs
ssh_public_key
az_subscription_id
az_client_id
az_client_secret
az_tenant_id
aks_region
aks_name
aks_nodes
aks_node_type
aks_pool_name
aks_node_disk_size
You're also free to update any other input variable value
./create-cluster.sh
./list-clusters.sh
Use the name and location of the cluster you just created to update kubeconfig
and set the current context for kubectl
./set-kubectl-context.sh <aks-cluster-name> <azure-resource-group>
kubectl get pods -A
./destroy-cluster.sh