You already have Docker Desktop from Module 7, Sub-module 1. Here's the good news: Kubernetes is built in. No separate installation, no virtual machines, no complex setup. Just a checkbox.
By the end of this chapter, you'll have a working Kubernetes cluster running on your laptop—the same API and concepts used in production cloud deployments—ready for your first Pod deployment.
Key insight: Docker Desktop Kubernetes is NOT a toy. It's a real Kubernetes cluster with the same API as production. Everything you learn here transfers directly to cloud deployments.
Docker Desktop will download Kubernetes components and start the cluster. This takes 2-3 minutes on first enable.
What you'll see:
Open a terminal and run:
Output:
Both Client and Server versions should display. If Server Version is missing, Kubernetes isn't running yet—wait for the green indicator in Docker Desktop.
Check that your cluster is healthy:
Output:
This shows:
Check the nodes in your cluster:
Output:
This shows:
Your Kubernetes cluster is running and ready.
kubectl needs to know which Kubernetes cluster to talk to. This is managed through contexts.
A context combines:
Output:
This confirms kubectl is pointing to your Docker Desktop Kubernetes cluster.
Output:
The * marks your current context. If you later work with cloud clusters (GKE, EKS, AKS), you'll see multiple contexts here and can switch between them:
Context configuration lives in ~/.kube/config:
Output (partial):
Docker Desktop automatically configures this when you enable Kubernetes.
Look for the green "Kubernetes running" indicator in Docker Desktop's bottom-left corner. Or run:
If Kubernetes becomes unresponsive:
This resets the cluster to a clean state (removes all deployments).
To free up resources when not using Kubernetes:
Re-enable anytime with the same checkbox.
Docker Desktop shares resources with Kubernetes. Adjust in:
You now have:
No VMs. No drivers. No hypervisors. Just a checkbox.
Your local Kubernetes cluster is ready. Next lesson, you'll deploy your first Pod to this cluster.
Now that your cluster is running, explore it with AI assistance.
What you're learning: How Docker Desktop combines control plane and worker responsibilities on a single node, and what Kubernetes components are actually running.
What you're learning: How professionals manage multiple Kubernetes environments safely, preventing accidental production deployments.
What you're learning: Resource management fundamentals—the relationship between node capacity, allocatable resources, and pod requests/limits that you'll configure in later lessons.
You built a kubernetes-deployment skill in Chapter 1. Test and improve it based on what you learned.
Ask yourself:
If you found gaps: