.NET on Azure Course Labs

Lab Solution

The quickest way to scale up or down is with Kubectl:

kubectl scale deploy/simple-web --replicas 4

Be careful with this approach, because it means your running application is different from your model in source control.

List the Pods with wide output and you'll see the internal IP addresses:

kubectl get pods -o wide

Refresh your browser and you should see the responses all come from different Pods.

Find the Application Gateway in the Azure Portal - it will be called appgw, in the AKS MC_ Resource Group:

Application Gateway is configured in the same vnet as AKS (all created for you), so it can reach the Pods using their internal IP addresses.