Prepare a local machine that can connect with the Kubernetes cluster and deploy the Docker container image to the cluster.
You should install the following OS and software to the machine:
-
Windows 10
-
Docker Desktop
Docker Desktop includes Docker Engine, Docker CLI client, Docker Compose, Docker Content Trust, Kubernetes, and Credential Helper.
After installing Docker Desktop, you need to enable Kubernetes support. To do that, go to Preferences > Kubernetes and then click Enable Kubernetes.
-
Azure CLI
This tutorial requires that you are running the Azure CLI version 2.0.64 or later. Run az -- version to find the version. If you need to install or upgrade, see Install Azure CLI.
-
kubectl
You will need to use kubectl to connect to the Kubernetes cluster from your local computer and create deployments for the application.
kubectl is already installed if you use the Azure Cloud Shell. You can also install it locally using the az aks install-cli command.
-
Helm
To install the Nginx ingress controller, you use Helm. Make sure you are using the latest release of Helm and have access to the ingress-nginx Helm repository.
There are several ways to accomplish a task in Azure, for example, you can create an AKS cluster using the Azure portal, a PowerShell script, an Azure CLI script etc. In this tutorial, we will take priority in using the Azure portal whenever possible.