The golden path · wrap-up
Cheat sheet & self-check
Every command from this section on one page.
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 |