Kubernetes on Azure AKS - Fundamentals

Welcome to the Kubernetes on Azure AKS workshop! This training consists of 31 hands-on lab exercises grouped into 11 modules, guiding you through Kubernetes fundamentals with Azure AKS integration.

Environment Setup

1. Log in to Azure Portal

Go to portal.azure.com and sign in with the credentials provided by the instructor (e.g. banqsoft-XX@protopialabs.onmicrosoft.com).

2. Launch Codespaces

  1. Open the repository ProtopiaTech/training-k8s-basic-codespaces (optionally fork it)
  2. Click CodeCodespacesNew codespace (the + button)
  3. Wait for the environment to start — it includes kubectl, helm, kubectx/kubens, and az CLI

You can work directly in the browser or connect from VS Code on your machine — install the GitHub Codespaces extension (part of the Remote Development pack), then Ctrl+Shift+P / Cmd+Shift+PCodespaces: Connect to Codespace.

3. Log in to Azure CLI

In the Codespaces terminal, authenticate to Azure using device code flow:

az login --use-device-code

Open the link shown in the terminal, enter the code, and sign in with the same account you used in step 1.

Then set the training subscription:

az account set --subscription 103f4802-c71c-4ee1-8701-516512df9a8b

4. Configure kubeconfig

The kubeconfig file configures your connection to the Kubernetes cluster. It contains the API server address, certificates, and credentials. kubectl looks for it at ~/.kube/config by default.

After launching your environment, install the tools and download the kubeconfig. The instructor will provide the resource group name and cluster name.

# Install kubectl and kubelogin
az aks install-cli

# Download kubeconfig from AKS
az aks get-credentials --resource-group <RESOURCE_GROUP> --name <CLUSTER_NAME>

# Convert kubeconfig to use kubelogin for Azure authentication
kubelogin convert-kubeconfig -l azurecli

# Verify connection
kubectl get nodes

Your Namespace

Each participant works in their own namespace (e.g. student-XX). Set it as default:

kubectl config set-context --current --namespace=student-XX

ACR Image

Exercises use the kuard application image hosted in Azure Container Registry. Replace <ACR_NAME> with the ACR name provided by the instructor:

<ACR_NAME>.azurecr.io/kuard:1

Exercise List

Module 1: Cluster Architecture

Module 2: Pods

Module 3: Configuration

Module 4: Reliability & Deployments

Module 5: Services

Module 6: Networking

Module 7: Network Policies & Disruption

Module 8: Ingress

Module 9: Scaling

Module 10: Security

Module 11: Monitoring

results matching ""

    No results matching ""