Running, scaling, and updating an application in AKS

To run and deploy an application in AKS in Azure, we will need the Kubernetes manifest file, which will define how an image should be deployed. However, before we perform that part of the exercise, we have to configure Kubernetes locally, so it can connect with our cluster. To do so, perform the following steps:

  1. Run the following command:
kubectl get nodes
  1. Initially, it will return the following result:
Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.
  1. That means that we have not configured kubectl with the AKS cluster we just created. To do so, use the following Azure CLI command:
az aks get-credentials ...

Get Hands-On Azure for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.