Toolkit
The capstone touched more tools than any other course. This lesson lists what the sandbox has (so you know what the verified sessions used), the tools worth installing on your own machine for this project, and one small check you can add to CI today.
What the sandbox has
go version | cut -d' ' -f3
govulncheck -version | grep -E '^(Sc|DB u)' | sed 's/^/govulncheck /'
psql --version
redis-cli --version
helm version --short
kustomize version
kubectl version --client | head -1
echo "kubeconform $(kubeconform -v)"
tofu version | head -1
terraform version | head -1
tflint --version | head -1
prometheus --version | head -1 | cut -d' ' -f1-3
trivy --version | head -1
yq --version
jq --version
echo "--- not in the sandbox (install locally):"
for t in docker kind k3d act ko golangci-lint tilt skaffold k9s stern cosign argocd k6; do
command -v "$t" >/dev/null || printf '%s ' "$t"
done; echogo1.27.3
govulncheck Scanner: govulncheck@v1.9.0
govulncheck DB updated: 2026-10-21 00:27:29 +0000 UTC
psql (PostgreSQL) 16.15 (Ubuntu 16.15-0ubuntu0.24.04.1)
redis-cli 7.0.15
v4.3.1+gc0d08d0
v5.8.3
Client Version: v1.37.1
kubeconform v0.8.0
OpenTofu v1.13.2
Terraform v1.17.0
TFLint version 0.65.0
prometheus, version 3.15.1
Version: 0.76.1
yq (https://github.com/mikefarah/yq/) version v4.54.1
jq-1.7
--- not in the sandbox (install locally):
docker kind k3d act ko golangci-lint tilt skaffold k9s stern cosign argocd k6
For your machine
| Need | Tool | Notes |
|---|---|---|
| containers | Docker Desktop or Engine, or Podman | kind and k3d need one of them |
| local clusters | kind, k3d | kind is closest to upstream Kubernetes; k3d is lighter and has a built-in registry and load balancer |
| cluster + registry in one file | ctlptl | declares a kind/k3d cluster with a local registry wired in |
| inner dev loop | Tilt or Skaffold | rebuild and redeploy on save, with port-forwards and logs in one place; good while iterating on the chart |
| images without a Dockerfile | ko | builds Go apps straight into distroless-based images, multi-arch, and returns the digest; an alternative to the multi-stage Dockerfile |
| Go linting | golangci-lint | runs many linters (staticcheck, errcheck, gosec, …) in one pass; add it to make lint |
| workflows locally | act | CI Against a Local Registry |
| workflow security | actionlint, zizmor | syntax and security audits of .github/workflows |
| cluster navigation | k9s, stern, kubectx/kubens | a terminal UI, multi-pod log tailing, quick context and namespace switching |
| GitOps | argocd CLI | argocd app diff, app get, app history |
| signing | cosign | keyless signing in CI; cosign verify locally (Production Hardening) |
| load testing | k6, hey, vegeta | check the HPA, the pool budget and the cold-cache behaviour before real traffic does |
| dependency updates | Renovate or Dependabot | Go modules, actions (by SHA), Helm chart versions in Argo CD Applications and OpenTofu providers |
A check worth adding: metric names
promtool check metrics lints exposition text against the Prometheus naming conventions. Pipe /metrics into it in the integration test job, and naming mistakes never reach a dashboard. Here it reads two saved samples, linkly's real metrics and a careless alternative:
cat > linkly.prom <<'X'
# HELP http_requests_total HTTP requests by route and status code.
# TYPE http_requests_total counter
http_requests_total{code="302",route="/{code}"} 6
# HELP linkly_cache_requests_total Redis lookups for redirects, by result (hit, miss, error).
# TYPE linkly_cache_requests_total counter
linkly_cache_requests_total{result="hit"} 5
X
cat > careless.prom <<'X'
# HELP linkly_redirects Redirects served.
# TYPE linkly_redirects counter
linkly_redirects 6
# TYPE linkly_latency_ms histogram
linkly_latency_ms_bucket{le="10"} 1
linkly_latency_ms_bucket{le="+Inf"} 1
linkly_latency_ms_sum 4
linkly_latency_ms_count 1
X
promtool check metrics < linkly.prom; echo "linkly.prom exit code: $?"
promtool check metrics < careless.prom; echo "careless.prom exit code: $?"linkly.prom exit code: 0
linkly_latency_ms metric names should not contain abbreviated units
linkly_latency_ms no help text
linkly_redirects counter metrics should have "_total" suffix
careless.prom exit code: 3
linkly's names pass. The careless sample breaks three conventions at once: a counter without _total, an abbreviated unit (_ms; Prometheus uses base units, seconds, so _seconds), and no HELP text. In the integration job: curl -s localhost:8080/metrics | promtool check metrics (Metric Names & Exposition).
Test yourself
What does ko give you compared with linkly's multi-stage Dockerfile?
- A shell in the image
- Go images built without a Dockerfile, on a distroless base, multi-arch, with the digest returned
- Faster tests
- A Helm chart
Why does promtool check metrics reject linkly_latency_ms?
- Histograms aren't allowed
- Prometheus names use base units (seconds) without abbreviations, and the metric has no HELP text
- Names can't contain underscores
- Latency must be a gauge