The Capstone: Ship linkly
Every earlier DevOps course taught one layer on its own: a pipeline in CI/CD, a chart in Helm & Kustomize, a cluster in Terraform, a reconcile loop in GitOps, dashboards in Observability, error budgets in SRE. Real services need all of them at once, and most of the hard problems sit at the seams: the readiness probe has to agree with the app's shutdown code, the alert has to use the metric names the code exports, the chart has to read the secret the database operator writes.
This capstone puts the layers together around one service, linkly, a link shortener written in Go. You will read and run its code, then build everything that ships and operates it, one component per section. By the end you have a repository you can show an interviewer and a working mental model of how a production service hangs together.
What you will build
| Component | Technology | Section | Builds on |
|---|---|---|---|
| Application | linkly: Go net/http, PostgreSQL (pgx), Redis (go-redis), Prometheus metrics, log/slog JSON logs, OpenTelemetry traces |
The Application | Go, DevOps Scripting |
| Container | multi-stage build into distroless static:nonroot |
Container | Docker |
| Infrastructure | OpenTofu: a kind cluster with platform add-ons (local track), or VPC, EKS, RDS and ElastiCache (cloud track) | Infrastructure as Code | Terraform |
| CI | GitHub Actions: format, vet, tests against real PostgreSQL and Redis, govulncheck, image build, Trivy scan, push | Continuous Integration | CI/CD, Supply Chain Security |
| Manifests | Helm chart with a Gateway API HTTPRoute, HPA, PodDisruptionBudget, NetworkPolicy, ServiceMonitor | Kubernetes Delivery | Helm & Kustomize |
| CD | Argo CD syncing from the linkly-deploy GitOps repository |
Kubernetes Delivery | GitOps |
| Observability | Prometheus metrics, Grafana dashboards, Loki logs, traces, SLO burn-rate alerts | Observability | Observability, SRE |
Then two sections tie it off: production hardening (shutdown, security, secrets, backups, the runbook) and publishing the project as a portfolio piece.
The finished system
developer
│ git push / pull request
▼
acme/linkly ──► GitHub Actions ──► ghcr.io/acme/linkly:1.4.0 (image, scanned)
(Go, chart, test, scan, oci://ghcr.io/acme/charts/linkly (chart)
CI workflow) build, push │
│ bot commit: image tag
▼ │
acme/linkly-deploy ◄────────┘
(values per environment)
▲ pull
┌─────────────────────┼───────────── Kubernetes (kind locally, EKS in the cloud) ─┐
│ Argo CD ──► linkly Deployment ◄── HTTPRoute ◄── Gateway ◄── users
│ │ │ │
│ PostgreSQL ┘ └ Redis (read-through cache) │
│ Prometheus ◄── /metrics Loki ◄── JSON logs Grafana: RED + SLO │
└────────────────────────────────────────────────────────────────────────────────┘
▲ OpenTofu creates the cluster and the platform add-onsThree repositories, one direction of flow: code becomes an image and a chart in CI, a commit in linkly-deploy decides what runs where, and Argo CD makes the cluster match. Nobody runs kubectl apply against production by hand.
How the sessions work
The course has its own sandbox image. Every bash session marked as runnable is a real run, verified offline, in a fresh container that starts in an empty home directory:
- PostgreSQL 16 and Redis 7 start inside the session, so linkly really serves requests:
go build,go test,go runpluscurl,/metrics,psqlandredis-cliare all real. govulncheck, Helm, kubeconform, OpenTofu (with local or mocked providers),promtooland Trivy run on the files the session writes.- There is no Docker daemon, cluster or cloud account in the sandbox.
docker build, kind or k3d,helm install, Argo CD andtofu applyagainst AWS appear as sample sessions: realistic, but not executed here. Run them on your own machine.
Because each session starts empty, the lessons that run the app first recreate its source with the same heredocs as linkly: The Source. You can skip over that part of the session; it never changes.
Here is the sandbox, checking that its tools are present and starting the two backing services:
go version
postgres --version
redis-server --version | cut -d' ' -f1-3
helm version --short
echo "kubeconform $(kubeconform -v)"
tofu version | head -1
promtool --version | head -1 | cut -d" " -f1-3
trivy --version | head -1
initdb -D pgdata -U linkly --auth=trust >/dev/null
mkdir -p pgrun
pg_ctl -D pgdata -o "-k /home/learner/pgrun -c listen_addresses=" -l pg.log start >/dev/null
createdb linkly
redis-server --port 6379 --bind 127.0.0.1 --daemonize yes --dir /home/learner
psql -tAc "SELECT 'postgres answers: ' || current_database()"
redis-cli pinggo version go1.27.3 linux/amd64
postgres (PostgreSQL) 16.15 (Ubuntu 16.15-0ubuntu0.24.04.1)
Redis server v=7.0.15
v4.3.1+gc0d08d0
kubeconform v0.8.0
OpenTofu v1.13.2
promtool, version 3.15.1
Version: 0.76.1
postgres answers: linkly
PONG
What you should know first
The capstone assumes the courses listed in the box at the top of this page. You don't have to have finished all of them: each lesson links back to the lesson that explains a technique in depth, and the Go code is explained line by line. If you have never written Go, skim the Go course up to structs, interfaces and goroutines.
Tip: Work in your own Git repository from the first lesson. Commit after every lesson with a message that says what you added. The history becomes part of the portfolio piece in the last section.
Test yourself
In the finished system, how does a new image version reach the production cluster?
- CI runs
helm upgradeagainst production - A commit changes the version in the GitOps repository and Argo CD syncs it
- Developers run
kubectl set image - The cluster pulls the newest tag every hour
Which of these really runs in the course's sandbox sessions?
docker buildandkind create clusterhelm installinto a cluster- linkly itself, against PostgreSQL and Redis started in the session
tofu applyagainst AWS