Containers and Kubernetes
From your first container image to running, securing, scaling and fixing apps on Kubernetes, locally with kind and on AKS.
Work through the sections in order. Each how-to page has the steps and commands; open it in its guide to tick off steps and save your progress on this device.
1. Containers and registries
Package the app once, run it anywhere, and keep the images tidy. (DevOps guide)
- Read and write a Dockerfile15 minutes, Look only
- Build and push an image with ACR Tasks15 minutes, Costs money
- Automate builds and clean-ups with ACR tasks20 minutes, Costs money
2. Docker and containers
Run your app in a container without managing servers. (Azure Portal guide)
- Container Instances, Container Apps or AKS: which one?10 minutes, Look only
- Create a container registry and push an image15 minutes, Costs money
- Run a container in Container Instances10 minutes, Costs money
- Deploy a Container App15 minutes, Free tier
3. Kubernetes (AKS)
Managed Kubernetes, from first cluster to first app. (Azure Portal guide)
- Create a small AKS cluster20 minutes, Costs money
- Connect with kubectl and deploy an app15 minutes, Costs money
- Scale the nodes and upgrade the cluster15 minutes, Costs money
4. Kubernetes on AKS
Run containers at scale: deployments, scaling, routing and guard rails. (DevOps guide)
- Create an AKS cluster and deploy an app25 minutes, Costs money
- Roll out and roll back safely20 minutes, Costs money
- Scale pods automatically15 minutes, Costs money
- Scale on events with KEDA20 minutes, Costs money
- Upgrade AKS without downtime30 minutes, Costs money
- Route traffic with an ingress20 minutes, Costs money
- Mount secrets from Key Vault30 minutes, Costs money
- Enforce pod security standards20 minutes, Costs money
- Set quotas and default limits per team15 minutes, Costs money
- Control pod-to-pod traffic with network policies25 minutes, Costs money
5. Kubernetes in depth
How a cluster really works, and how to fix it: pods that won't start, sick nodes, evictions, DNS, disruption budgets, node scaling, operators and air-gapped clusters. Practise free on your own computer. (DevOps guide)
- Run a practice cluster on your computer20 minutes, Free
- See how the control plane and nodes work together25 minutes, Free
- Read a pod.yaml and follow a pod's lifecycle25 minutes, Free
- Fix pods that won't start40 minutes, Free
- Fix NotReady nodes and disk pressure35 minutes, Free
- Set requests and limits, and understand QoS classes30 minutes, Free
- Keep apps up during maintenance with disruption budgets25 minutes, Free
- Diagnose and tune cluster DNS30 minutes, Free
- Scale nodes: cluster autoscaler and Karpenter20 minutes, Look only
- Choose between a Helm chart and an operator20 minutes, Look only
- Run a cluster with no internet access20 minutes, Look only
- Build a safe AI troubleshooting agent for Kubernetes60 minutes, Costs money
6. Kubernetes skills
The everyday skills behind the CKA and CKAD exams: scheduling, Services and Gateway API, storage, access control, configuration, workload types, probes, backups, upgrades and observability. Free on your own computer. (DevOps guide)
- Place pods with affinity, taints and tolerations30 minutes, Free
- Expose an app with a Service and fix one with no endpoints30 minutes, Free
- Route web traffic with the Gateway API40 minutes, Free
- Keep data with volumes, claims and a StatefulSet35 minutes, Free
- Give a team just enough access with RBAC30 minutes, Free
- Configure an app with ConfigMaps and Secrets25 minutes, Free
- Run DaemonSets, Jobs and CronJobs30 minutes, Free
- Add startup, readiness and liveness probes30 minutes, Free
- Back up and restore etcd35 minutes, Free
- Plan a cluster version upgrade20 minutes, Look only
- Find problems with events, logs and metrics30 minutes, Free
- Final project: run a shop on Kubernetes from start to finish3 hours, Free
7. Helm and GitOps
Package apps, then let the cluster pull what's in Git. (DevOps guide)
- Install and upgrade an app with Helm20 minutes, Costs money
- Deploy from Git with Flux30 minutes, Costs money
Explained
How things work, including services that cost too much to practise on a free account.
- Inside a Kubernetes clusterThe control plane, etcd, controllers and leader election, in plain English: what happens between kubectl apply and a running pod.
- Kubernetes errors, decodedWhat each common pod and node error means, where to look first, and the usual fix.
- Kubernetes roadmap: the skills behind the CKA and CKADWhat the two main Kubernetes certifications test, how they differ, and the order to learn the skills in this guide.
- How Kubernetes decides where pods runThe scheduler's two steps, and the labels, affinities, taints and spreads you use to steer it.
- Kubernetes networking: pods, Services, DNS, Ingress and Gateway APIHow a request finds its way to a pod, from outside the cluster and from pod to pod.
- Kubernetes storage: volumes, claims and StatefulSetsWhere data lives in a cluster, how pods ask for it, and how stateful apps keep it when they move.
- Kubernetes security basics: RBAC, pod security and secretsWho can do what in a cluster, what pods are allowed to do, and how to handle passwords safely.
- Kubernetes workload types: which one to useDeployments, StatefulSets, DaemonSets, Jobs and CronJobs, and the question that picks between them.
- Kubernetes autoscaling: HPA, VPA, KEDA and nodesThe four ways a cluster grows and shrinks, and how they work together without fighting.
- Keeping a cluster current and recoverable: upgrades and backupsHow Kubernetes versions move, how to upgrade without outages, and what to back up when you can't back up etcd.
- Observing Kubernetes: events, logs, metrics and tracesWhat each signal tells you about a cluster, where it comes from, and a quick order for using them in an incident.
Practise
- Azure Portal, Hands OnRoadmap, guided labs and progress tracking
- DevOps, Hands OnTicket-style labs, roadmap and progress tracking
- AZ-104 Azure AdministratorExam practice with explained answers
- AZ-400 DevOps EngineerExam practice with explained answers
- AZ-104 Azure Administrator: lessonsRead the study lessons
- AZ-400 DevOps Engineer: lessonsRead the study lessons