Fast Inner-Loop Development with Skaffold

Intermediate · 30 minutes · 5 tasks, checked automatically · 100 points

In this lab you will experience the Skaffold inner-loop development workflow on a real Kubernetes cluster. Skaffold automates the render-deploy-verify cycle (and, where a Docker daemon is available, the build-tag-push step) so that every source change is reflected in the cluster with one command. You will install Skaffold inside the toolbox container, scaffold a minimal Go web application with its Dockerfile, and write a Skaffold pipeline. The LearnXops toolbox has no Docker daemon, so instead of building an image the pipeline ships your source code to the cluster as a ConfigMap generated by kustomize and runs it with the official Go image: every code change produces a new ConfigMap and a rolling update. You will deploy the app, verify it is serving traffic, then change the code and redeploy with a single `skaffold run`. By the end you will understand how Skaffold accelerates day-to-day Kubernetes development without leaving the terminal.

What you’ll learn

How this lab works

  1. Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
  2. Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
  3. Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
  4. Finish and keep going: 100 points, your progress saved, and the next lab to try.

What it runs on

What you need

Topics: skaffold, inner-loop, gitops, kubernetes, kind, docker, go, ci-cd, devtools

Create a free account to start this lab.

Keep going