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
- Install Skaffold inside the toolbox container and verify the binary works against the kind cluster
- Author a Dockerfile, a minimal Go web app, and a skaffold.yaml pipeline that builds and deploys to Kubernetes using kind's image-load mechanism
- Run `skaffold run` to perform a full build-deploy cycle and confirm the application is serving traffic via NodePort
How this lab works
- Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
- 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.
- Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Cluster: A real Kubernetes cluster on your computer (kind)
- Kubernetes: 1.34.8
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- A kind cluster created in the Kubernetes Playground
Topics: skaffold, inner-loop, gitops, kubernetes, kind, docker, go, ci-cd, devtools
Create a free account to start this lab.