Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 974 Bytes

File metadata and controls

39 lines (26 loc) · 974 Bytes

Provision AKS Cluster with Terragrunt

Prerequisites

  • Azure account with Owner role permissions on the Azure Subscription
  • terragrunt CLI version v0.55.18 or higher (tested with this version)
  • terrafrom CLI version v1.6.3 or higher (tested with this version)
  • kubectl CLI version v1.29.2 or higher (tested with this version)

Example Usage

Run infrastructure plan to preview the changes before applying:

terragrunt run-all plan --terragrunt-working-dir environments/dev

Once you are satisfied with the changes in the plan, apply the changes using the following command:

terragrunt run-all apply --terragrunt-working-dir environments/dev

Access AKS Cluster

Getting AKS Cluster configuration

az aks get-credentials --resource-group <aks-resource-group-name> --name <aks-cluster-name> --overwrite-existing
kubelogin convert-kubeconfig -l azurecli

Test run kubectl command:

kubectl get nodes

Done.