
Lab: Create Kubernetes Cluster in Azure (AKS)
Architecture we will create: Internet │ Azure Load Balancer │ AKS Cluster │ Pods / Deployments Step 1 — Install Azure CLI on Your VM (or Mac) Since you already have your Azure VM , SSH into it: ssh -i vm-lab-1_key.pem azureuser@20.83.170.33 Install Azure CLI: curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash Verify: az version Step 2 — Login to Azure Run: az login A browser login link will appear. Authenticate using your Azure account. Verify subscription: az account show Step 3 — Create Resource Group All AKS resources will live inside this group. az group create \ --name aks-lab-rg \ --location eastus Verify: az group list Step 4 — Create AKS Cluster Now create the Kubernetes cluster. az aks create \ --resource-group aks-lab-rg \ --name aks-lab-cluster \ --node-count 2 \ --enable-addons monitoring \ --generate-ssh-keys Explanation: --node-count 2 → number of worker nodes --generate-ssh-keys → auto creates SSH keys --enable-addons monitoring → enables Azure Monitor Creation takes
Continue reading on Dev.to Tutorial
Opens in a new tab



