Deploying an AKS cluster using the Azure portal

  1. Home
  2. Deploying an AKS cluster using the Azure portal

Return to AZ-104 Tutorial

Here you’ll learn AKS, Azure Kubernetes Service is a managed Kubernetes service that allows you to quickly deploy and manage clusters. On this page, you deploy an AKS cluster with the help of the Azure portal. A multi-container application that incorporates a web front end and a Redis instance. So, let’s begin.

Signing in to Azure

First of all, sign in to the Azure portal at https://portal.azure.com.

Creating an AKS cluster

In order to create an AKS cluster, follow these steps:

Create AKS cluster - provide basic information
Image Source: Microsoft
  1. First of all, select Create a resource.
  2. Secondly, select Containers > Kubernetes Service.
  3. Now, configure the following possibilities:
    • Project details: Select an Azure Subscription, then create an Azure Resource group.
    • Cluster details: Enter a Kubernetes cluster name, and later select a RegionKubernetes version, and DNS name prefix for the AKS cluster.
    • Primary node pool: Select a VM Node size for the AKS nodes.
  1. Click Next: Scale when complete.
  2. At the bottom of the screen, click Next: Authentication.
  3. On the Authentication page, do the following steps:
    • Creating a new service principal by leaving the Service Principal field with a (new) default service principal.
    • Enabling the option for Kubernetes role-based access control (RBAC).
AKS
Image Source: Microsoft

By default, Basic networking is required, and Azure Monitor for containers is enabled. After then, click Review + create and then Create when validation completes.

AKS

Connecting to the AKS cluster

To maintain a Kubernetes cluster, use kubectl, the Kubernetes command-line client. The kubectl the client is pre-installed in the Azure Cloud Shell.

Open Cloud Shell using the >_ button on the top of the Azure portal.

azure
Image Source: Microsoft

Running the application

A Kubernetes manifest file describes the desired state for the cluster. This includes two Kubernetes deployments – one for the sample Azure Vote Python applications. Also, two Kubernetes Services are created – an internal service for the Redis instance. And external service to reach the Azure Vote application from the internet.

AKS

Reference: Microsoft Documentation

Return to AZ-104 Tutorial

Menu