Build an Internal Developer Platform cheat sheet
63 commands from every lesson of Build an Internal Developer Platform — Backstage, Golden Paths & Crossplane, on one page.
Questions to ask before building
Where do developers wait? | Tickets for repos, namespaces, DNS, databases, access |
What do they copy? | Pipelines, Dockerfiles, manifests copied from another team |
What breaks most in production? | Missing probes, limits, alerts: candidates for defaults |
What must every service prove? | Signed images, owner, on-call, audit trail: build it into the path |
Lab housekeeping
kind get clusters | hub, wl-1, wl-2 |
kind get kubeconfig --name wl-1 --internal | Kubeconfig using container DNS (what the hub must use) |
kubectl -n argocd get secret -l argocd.argoproj.io/secret-type=cluster --show-labels | Registered clusters and their labels |
argocd login localhost:8080 --plaintext --username admin --password <pw> | Argo CD CLI against the lab (no TLS) |
argocd cluster list | Clusters Argo CD can deploy to |
docker stop hub-control-plane wl-1-control-plane wl-2-control-plane | Pause the lab without losing state |
Working with a Backstage app
npx @backstage/create-app@latest | Create a new Backstage app |
yarn start | Run frontend (:3000) and backend (:7007) locally |
yarn --cwd packages/backend add <plugin-package> | Add a backend plugin or module |
yarn backstage-cli versions:bump | Upgrade all Backstage packages to the latest release |
yarn build:backend && yarn build-image | Build the backend and a container image |
curl localhost:7007/.backstage/health/v1/readiness | Backend readiness |
Catalog API (backend on :7007)
curl -s localhost:7007/api/catalog/entities/by-query?filter=kind=component | jq '.items[].metadata.name' | List components |
curl -s localhost:7007/api/catalog/entities/by-name/component/default/orders | jq .relations | Relations of one entity |
curl -s -X POST localhost:7007/api/catalog/refresh -H 'content-type: application/json' -d '{"entityRef":"component:default/orders"}' | Ask the catalog to refresh one entity |
Annotations you will use
backstage.io/techdocs-ref: dir:. | Docs live in this repo |
backstage.io/kubernetes-id: orders | Find this component's workloads in clusters |
argocd/app-name: orders | Link to the Argo CD application |
backstage.io/source-location: url:https://git/… | Where the code lives |
Template development
http://localhost:3000/create/edit | Template editor: load a local template and dry-run it |
http://localhost:3000/create/actions | Every installed scaffolder action with its inputs |
http://localhost:3000/create/tasks | Past runs and their logs |
${{ parameters.name }} | A form value inside template.yaml |
${{ values.name }} | A value inside the skeleton files |
${{ steps['publish'].output.remoteUrl }} | Output of an earlier step |
Watch the fleet
kubectl -n argocd get applicationset | ApplicationSets and their conditions |
kubectl -n argocd get app -l fleet.example.io/service=tenant-api | One service across all clusters |
kubectl -n argocd logs deploy/argocd-applicationset-controller | tail | Why an ApplicationSet produced nothing |
kubectl -n argocd get applicationset golden-fleet -o jsonpath='{range .status.applicationStatus[*]}{.application}:{.status} {end}' | Progressive sync status per app (Waiting, Pending, Progressing, Healthy) |
argocd app terminate-op <app> | Stop a stuck sync after fixing Git |
Check what was generated
kubectl get networkpolicy,resourcequota,limitrange,rolebinding -n <team-ns> | The objects the platform guarantees |
kubectl get clusterpolicy | Installed Kyverno policies and their readiness |
kubectl get updaterequests -n kyverno | Pending or failed generate requests |
kubectl delete networkpolicy team-default-deny -n <team-ns> && sleep 5 && kubectl get networkpolicy -n <team-ns> | Drift test: it should come back |
Inspect Crossplane
kubectl get xrd | Platform APIs and whether they are established |
kubectl get composition -L provider | Implementations, labelled by backend |
kubectl get databases -A | Requests made by teams (composite resources) |
crossplane beta trace database orders -n team-shop | Everything one request created, with readiness (newer CLIs: crossplane resource trace) |
kubectl get managed | All cloud resources Crossplane manages |
kubectl annotate database orders -n team-shop crossplane.io/paused=true | Pause reconciliation (break-glass) |
Keeping services current
renovate.json: { "extends": ["config:recommended"] } | Automated dependency and base-version PRs |
resources: [ https://git.example.com/platform/bases//web?ref=v1.4.0 ] | Kustomize: consume a versioned shared base |
include: { component: git.example.com/platform/ci/build@v2 } | GitLab CI component pinned to a version |
git grep -l 'platform/bases//web?ref=v1.' -- '*/kustomization.yaml' | Who is still on the old base |
The four DORA metrics
Deployment frequency | How often changes reach production (elite: on demand, many per day) |
Lead time for changes | Commit to running in production (elite: under a day) |
Change failure rate | Share of deployments causing an incident or rollback |
Time to restore service | From failure to recovery (elite: under an hour) |
Platform measures
Time to first deploy | Template run → healthy in every cluster |
Adoption | Share of services on the golden path / current building blocks |
Ticket volume | Requests the platform still handles manually |
Developer satisfaction | Short regular survey, plus open comments |
Design review checklist
Users and pain | Who are the developers, what do they wait for, what do they copy? |
Interfaces | Portal, CLI, Git: which first, and is the portal replaceable? |
Golden paths | Which workflows first? Thin templates + versioned building blocks? |
Delivery | GitOps, rings, progressive delivery, rollback by git revert |
Infrastructure APIs | Which resources become self-service, on which backends? |
Guard-rails | Onboarding kit, admission policy, identity, cost |
Product | Pilot teams, adoption plan, support, deprecation, metrics |