01 Create Azure Kubernetes Service

Create AKS cluster

In this section we will create a simple one node AKS cluster using a B2S size VM for our node.

Choose Create a resource > search for Kubernetes > select Kubernetes Service > Create.

The following images shows a sample configuration for the installation that will be used for this article.

Basic

placeholder placeholder

Networking

placeholder

Monitoring

placeholder

Tags

placeholder

Review and Create

placeholder

Install Azure CLI on Windows

We will use the Azure CLI to manage our AKS Cluster. On Windows, the Azure CLI binary is installed via a MSI, which gives you access to the CLI through the Windows Command Prompt (CMD) or PowerShell.

You can download and install the CLI on the following page:

MSI Installer

You can now run the Azure CLI with the az command from either Windows Command Prompt or PowerShell.

az login

Install the kubectl CLI

Kubectl is used to manage kubernetes. To install it locally, run the following command:

az aks install-cli

Connect with kubectl

To configure kubectl to connect to your Kubernetes cluster, run the following command (replace the [placeholder] text with your data):

az aks get-credentials --resource-group [myResourceGroup] --name [myAKSCluster]

To verify the connection to your cluster, run the kubectl get nodes command.

kubectl get nodes

Output:

NAME                       STATUS    ROLES     AGE       VERSION
aks-agentpool-35064155-0   Ready     agent     17m       v1.9.6

Next Steps

The next article in this website will walk you through installing the Helm package manager in our AKS cluster.

Next Article : Installing Helm On Windows

Comments