0
0
Azurecloud~30 mins

AKS cluster creation in Azure - Mini Project: Build & Apply

Choose your learning style9 modes available
AKS Cluster Creation
📖 Scenario: You are working as a cloud engineer for a company that wants to deploy containerized applications using Azure Kubernetes Service (AKS). Your task is to create a basic AKS cluster with essential configurations.
🎯 Goal: Build a simple Azure Kubernetes Service (AKS) cluster configuration using Azure CLI commands step-by-step.
📋 What You'll Learn
Create a resource group named myResourceGroup in the eastus region.
Define the AKS cluster name as myAKSCluster.
Create the AKS cluster with 2 nodes of size Standard_DS2_v2.
Enable monitoring add-on for the AKS cluster.
💡 Why This Matters
🌍 Real World
Creating AKS clusters is a common task for deploying containerized applications in Azure cloud environments.
💼 Career
Cloud engineers and DevOps professionals frequently create and manage AKS clusters to support scalable and managed Kubernetes workloads.
Progress0 / 4 steps
1
Create the Azure resource group
Use the Azure CLI command to create a resource group named myResourceGroup in the eastus region.
Azure
Need a hint?

The command az group create creates a resource group. Use --name to specify the group name and --location for the region.

2
Define the AKS cluster name variable
Create a shell variable called AKS_CLUSTER_NAME and set it to myAKSCluster.
Azure
Need a hint?

Use AKS_CLUSTER_NAME=myAKSCluster to define the variable in shell.

3
Create the AKS cluster with 2 nodes
Use the Azure CLI command to create an AKS cluster named $AKS_CLUSTER_NAME in the resource group myResourceGroup with 2 nodes of size Standard_DS2_v2.
Azure
Need a hint?

Use az aks create with --resource-group, --name, --node-count, and --node-vm-size. Add --generate-ssh-keys to create SSH keys automatically.

4
Enable monitoring add-on for the AKS cluster
Update the AKS cluster creation command to enable the monitoring add-on by adding --enable-addons monitoring.
Azure
Need a hint?

Add --enable-addons monitoring to the az aks create command to enable monitoring.