Learning Hub / Kubernetes & Platform / Build an Internal Developer Platform — Backstage, Golden Paths & Crossplane
Foundations · wrap-up
Cheat sheet & self-check
Every command from this section on one page.
01 · What an internal developer platform is
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 |
02 · Lab: hub and workload clusters on kind
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 |
03 · Backstage architecture
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 |