You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Azure Kubernetes Service (AKS) is a managed Kubernetes offering that simplifies deploying, managing, and scaling containerised applications. Azure manages the Kubernetes control plane — the API server, etcd, scheduler, and controller manager — while you manage the worker nodes that run your application workloads. This lesson covers the architecture, key concepts, and your first AKS deployment.
Kubernetes (K8s) is an open-source container orchestration platform originally developed by Google. It automates:
Kubernetes is powerful but complex to operate. AKS removes much of the operational burden by managing the control plane for you.
+--------------------------------------------------+
| Azure Managed |
| +--------------------------------------------+ |
| | Control Plane (Free) | |
| | API Server | etcd | Scheduler | Controllers| |
| +--------------------------------------------+ |
+--------------------------------------------------+
| |
v v
+------------------+ +------------------+
| Node Pool 1 | | Node Pool 2 |
| (System) | | (User / App) |
| +------+ +----+ | | +------+ +----+ |
| | Node | |Node| | | | Node | |Node| |
| | VM | | VM | | | | VM | | VM | |
| +------+ +----+ | | +------+ +----+ |
+------------------+ +------------------+
# Create a resource group
az group create --name rg-aks --location uksouth
# Create an AKS cluster
az aks create \
--resource-group rg-aks \
--name my-aks-cluster \
--node-count 3 \
--node-vm-size Standard_D4s_v5 \
--generate-ssh-keys \
--attach-acr mycompanyacr \
--network-plugin azure \
--enable-managed-identity
# Get credentials and configure kubectl
az aks get-credentials \
--resource-group rg-aks \
--name my-aks-cluster
# Verify the connection
kubectl get nodes
A pod is the smallest deployable unit in Kubernetes — one or more containers that share networking and storage.
apiVersion: v1
kind: Pod
metadata:
name: my-app
spec:
containers:
- name: web
image: mycompanyacr.azurecr.io/myapp:1.0
ports:
- containerPort: 8080
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.