We Open-Sourced Our 22-Hour Kubernetes Course

Eleven sessions, one real app you break and fix, and the opinionated calls we made teaching Kubernetes to working developers. Free under CC BY-NC: fork it, run it, teach from it.

Jul 2, 2026

Updated

Reflekt Lab's open-source Kubernetes course: 22 hours, 11 sessions, one real app

We run Kubernetes in production. Our own stack (GKE, Traefik, Cloud SQL, a fleet of Go microservices) lives on it, and over the last year we built a 22-hour course to teach it to the developers we work with. It is now open source: github.com/rflkt/k8s-training, free under CC BY-NC 4.0.

Update, 11 October 2026: the course now has an optional twelfth session on Vault: generated database credentials, password rotation, and the error window a rotation opens, measured on a real cluster. What it covers and what it taught us.

This post is not the syllabus. It is the reasoning: why the course is shaped the way it is, the calls we would defend, and what we would tell anyone starting Kubernetes today.


Why we gave it away

Two reasons, both selfish enough to be honest about.

First, teaching something forces you to actually understand it. Half the material started as notes we wrote to stop making the same mistakes twice. Publishing it raises the bar on our own explanations, because now they are in public.

Second, most Kubernetes tutorials are either a five-minute kubectl run demo or a 40-hour certification grind. There is very little in between for a competent backend developer who just needs to become dangerous in a weekend. That gap is exactly where our clients sit, so we filled it, and there is no reason to keep it private.

What is actually in it

Eleven sessions of two hours, each roughly 45 minutes of theory and 75 minutes hands-on. Everything runs on a local kind cluster, so there is no cloud bill to start.

#SessionYou end up able to
01FundamentalsReason about pods, ReplicaSets, Deployments, namespaces and labels
02Services & networkingRoute traffic with ClusterIP, NodePort, LoadBalancer and internal DNS
03IngressExpose apps through Traefik with real routing rules and TLS
04StorageUse PV, PVC, StorageClass and ConfigMaps mounted as volumes
05Secrets (basics)Mount secrets as env vars and volumes, and know why base64 is not encryption
06Secrets (advanced)Pull from GCP Secret Manager via the External Secrets Operator and rotate them
07Terraform (intro)Write HCL, understand state, and structure modules
08Terraform (cluster)Provision a real GKE cluster: VPC, subnets, IAM, node pools
09Terraform (apps)Deploy workloads with the Helm provider from code
10ProductionAdd health checks, resource limits, HPA and rolling updates
11CI/CDShip on push with GitHub Actions deploying to GKE
12Vault (optional, added Oct 2026)Get database credentials from Vault and survive a password rotation without a restart

Each lab ships as a starter/ with TODOs and a working solution/, plus kubectl, Helm and Terraform cheatsheets. The course materials are in French; the code, manifests and commands are universal.

The opinionated calls

A course is a series of decisions about what to leave out. These are the ones we would argue for.

One real application, broken on purpose. The thread running through every session is a single app: a Go REST API talking to PostgreSQL, and an nginx frontend that proxies to it and refreshes every five seconds so you see pods rotate. You are not applying disconnected YAML snippets. You deploy something that behaves like a real service, and then you make it fail: kill a pod, exhaust a resource limit, break a readiness probe, and watch what Kubernetes does. Toy examples teach syntax. A real app that misbehaves teaches operations.

kind, not minikube, not a managed cluster. We start entirely local on a three-node kind cluster. Multiple nodes matter, because a single-node cluster hides everything interesting about scheduling, affinity and rolling updates. Local matters because nobody learns well while worrying about spend. GKE shows up in session 8, once the concepts are already yours and the cloud is just where you run them.

Secrets get two full sessions. This is the part most courses wave at, and it is the part that hurts you in production. Session 5 covers the mechanics and the uncomfortable truth that a Kubernetes Secret is base64, not a vault. Session 6 is the one people remember: wiring the External Secrets Operator to GCP Secret Manager, mounting through the CSI driver, and actually rotating a secret without a redeploy. If you take one session, take that one. And if you already run on it, session 12 is where it goes next: Vault.

Terraform, because clicking in a console is not a skill. Sessions 7 to 9 provision a real GKE cluster from code: network module, cluster module, node pool of e2-small spot VMs with autoscaling, everything prefixed per student. You learn Kubernetes the way you should run it: reproducibly, in version control, with a terraform destroy that gives you your afternoon back.

It ends where real work starts. The last session is CI/CD: GitHub Actions builds the image, pushes it, and deploys to GKE on every push, with separate environments. That is the finish line on purpose. The point of the course is not to know Kubernetes. It is to ship to it on a Tuesday without ceremony.

October 2026: a Vault module, and the gap it measures

In October 2026 we moved our own production from GCP Secret Manager to Vault, one app at a time, each with a one-line rollback. On a platform we run for a client, we also turned on automatic rotation of the database passwords. Session 12 is that work turned into a two-hour lab. It is optional, outside the 22 hours, and runs entirely on kind.

It covers three ideas that Secret Manager alone does not give you:

  • One identity per app. A pod authenticates to Vault with its ServiceAccount, and a Vault role ties that one ServiceAccount to a policy that can read that one app's paths. The lab proves it: the same mount from a pod running as default gets a 403 and never starts.
  • Credentials Vault makes. Vault creates PostgreSQL users on demand and drops them when their lease ends (dynamic roles), or keeps an existing login and changes its password on a schedule (static roles). Dynamic suits people and batch jobs. Static suits an app holding a connection pool.
  • A database password nobody knows. Right after connecting Vault to Postgres, you have Vault rotate its own admin password. From then on it exists only inside Vault.

Then the lab rotates the app's password every two minutes and watches. This is what we got while writing it:

19:04:31 vault=wGFZDj file=wGFZDj POST=201
19:04:44 vault=AdQeYY file=wGFZDj POST=201   <- Vault rotated, the mounted file has not caught up
19:04:57 vault=AdQeYY file=wGFZDj POST=500   <- a new connection with the old password
19:05:11 vault=AdQeYY file=AdQeYY POST=201   <- the CSI driver refreshed the file

Vault changes the password in Postgres at once. The CSI driver only re-reads Vault on its next poll. In between, open connections keep working (Postgres does not drop a session when its password changes), and every new connection fails. The window is as long as the poll interval.

What shrinks it, in order of effect:

  1. The app re-reads its credentials on every new connection. We changed the course API to do exactly that. Without it, every rotation needs a restart, and that is an outage, not a window.
  2. A shorter poll. On the client platform, going from two minutes to 15 seconds cut the outage at each rotation from about 2m45s to about 35s. It costs nothing as long as apps only mount static secrets: a poll creates no credential.
  3. A liveness probe that does not depend on the database. Otherwise Kubernetes kills a pod that was about to recover by itself, and the reboot adds to the outage.
  4. Rotation at a quiet hour, so the window falls when nobody is writing.

The lesson we did not expect: rotation is an application feature, not an infrastructure setting. Vault can rotate a password every hour, but if the app read it once at boot, every rotation is an incident.

The lab ends with the traps we actually hit during the migration. Each one is a sentence you can check in a review:

  • Write the value to Vault before you reference it. A mount that names a key Vault does not have yet fails, and the pod never starts. On a single-replica app with a volume, the old pod is already gone.
  • A changed SecretProviderClass does not remount running pods. The apply goes green and the new variable never shows up. Restart, or roll the pods with an annotation.
  • The first rotation is the release. Vault rotates a static login's password as soon as it adopts it, not at the first scheduled tick. That is good news: it is when someone is watching.

It is in the same repository: labs/session-12-vault, with a bonus that manages the same Vault configuration in Terraform and one on CI with no stored key at all.

What we would tell someone starting today

  • Learn the objects before the tools. Helm and operators are wonderful once you know what they generate. Learn them first and they are magic you cannot debug. Write the raw Deployment by hand at least once.
  • Read the events, not just the logs. kubectl describe and kubectl get events explain nine failures out of ten. Most people stare at application logs for a scheduling problem the events already spelled out.
  • Set resource requests early. Pods without requests are the single biggest cause of clusters that behave fine in a demo and fall over under load. It is one line. Write it.
  • Make rotation the app's job. Read secrets from files, and re-read them when you open a connection. It is ten lines, and it is the difference between a rotation nobody notices and one that pages you.
  • Probes are a promise, not decoration. A readiness probe that always returns 200 is worse than none, because Kubernetes now trusts a lie. Make it check something real.

How to use it

Clone it, run ./setup/prerequisites.sh, spin up the kind cluster, and start at session 1. It works for self-study, and it works as a spine for someone running an internal workshop. The license is CC BY-NC 4.0: use it, adapt it, teach from it internally, just credit it and do not resell it as paid training without asking.

If your team needs the guided version, or you want the same rigor pointed at your actual infrastructure, that is what we do. Either way, the material is yours: github.com/rflkt/k8s-training.