CD5: Kubernetes essentials

Lesson 1 of 5 · reading 15–25 minutes; practice and project time is on the module page

What an orchestrator does, and when you need one

🎯You'll be able to

Explain what Kubernetes adds over running containers yourself, name its main parts, and judge when it's worth the extra complexity.

🏠The everyday picture

A big railway station has a control room. Controllers don't drive trains; they keep a plan of which trains should be where and keep correcting reality to match it: send a spare engine when one breaks down, move a train to a free platform, hold a train until the line is clear.

📘What it really is

📝A worked example

Input (not verified): with a kind cluster running, kubectl get nodes and kubectl get pods -A.

Expected output: one node named something like kind-control-plane with status Ready, and system pods in the kube-system namespace (for example coredns, etcd, kube-apiserver, kube-scheduler), all Running. These are the control plane parts described above, running as pods themselves.

🌍Where it's used

📝Case scenario

A five-person startup moved its single web app to self-managed Kubernetes because "that's what big companies use". Within three months, half their engineering time went on cluster upgrades, certificates and networking problems. They moved the app to a managed container service with two copies and kept the Kubernetes skills for later, when they had 20 services and a platform engineer.

🖱️Try it

List, for RouteRani as it is in the kit, which jobs you do yourself that Kubernetes would do: restarting a crashed copy, choosing which server runs it, updating nginx when copies change, rolling updates, autoscaling. Success: for each one, you can say which part of the kit does it now (Docker restart policy, Terraform, nginx's resolver, create_before_destroy, tools/autoscale.js).

⚠️Common mistakes

🛠️For your project

In your capstone write-up, explain whether RouteRani should move to Kubernetes, and at what point it would be worth it.

✅Quick check

What does a Kubernetes controller do?

Show the answer

Repeatedly compares the desired state with what's running and acts to close the gap.

Name one sign that a team doesn't need Kubernetes yet.

Show the answer

A few services with steady traffic and no one to run a cluster.

← BackCD5
ProLearners Assist