Author : MD TAREQ HASSAN | Updated : 2021/04/15

Prerequisites

Creating Cluster in Azure Portal

Note: No need to create additional nodepool unless required. Use default ‘agentpool’ and eanble autoscaling

Creating Cluster in Azure Portal Step 1

Creating Cluster in Azure Portal Step 2

Creating Cluster in Azure Portal Step 3

Creating Cluster in Azure Portal Step 4

Creating Cluster in Azure Portal Step 5

Creating Cluster in Azure Portal Step 6

Creating Cluster in Azure Portal Step 7

Creating Cluster in Azure Portal Step 8

Creating Cluster in Azure Portal Step 9

Testing Cluster

Open cloudshell and select Bash (Azure cli command will be used)

Get credential (might ask for device login using code)

az aks get-credentials --resource-group FooResourceGroup --name BarAKSCluster

Check nodes

kubectl config set-context --current --namespace xyz

kubectl get nodes
kubectl get pods

Next