Git, CI/CD & GitOpsCVII · Production Infrastructure Delivery ArchitectureArchitecture
The reference architecture — the diagram and the components
What you'll learn
- Draw the production delivery architecture from engineer to runtime as a single diagram
- Identify the seven components and the four planes of the reference architecture
- Distinguish a reference architecture from a vendor diagram and a tool inventory
- Recognise what the reference architecture explicitly excludes
Prerequisites
Verified against Git 2.55.x teaching target; 2.40+ minimum · GitHub Actions continuous service; Aug 2026 documentation baseline · Argo CD v3.5.x teaching target; v3.0+ minimum · Flux v2.9.x · Sigstore Cosign v3.1.x · SLSA v1.2 · OCI Distribution Specification v1.1 · Git LFS v3.7.1 · Kubernetes (cross-course target) 1.36.x
A reference architecture is the single picture drawn when an engineer is asked “how does code reach production in this organisation?”. For an auditable team, the picture has the same shape regardless of tools: seven components across four planes, each connected by a signed edge. If a system matches, the audit chain is intact. If it deviates, the deviation is a named failure mode in the next five lessons.
The diagram
flowchart TB
subgraph SP["Source plane"]
ENG["Engineer + SSH key"] --> REPO["Git repo\n(default branch)"]
end
subgraph BP["Build plane"]
REPO -->|"webhook + OIDC"| WF["CI workflow\n(signed revision)"]
WF --> IMG["OCI image\n(by digest)"]
WF --> PROV["Provenance\n(SLSA)"]
WF --> SBOM["SBOM"]
end
subgraph AP["Artifact plane"]
IMG -->|"cosign sign"| REG["Registry"]
PROV --> REG
SBOM --> REG
end
subgraph DP["Deploy / Runtime plane"]
REG -->|"pull by digest"| CTRL["GitOps controller"]
CTRL -->|"reconcile"| CLUS["Cluster"]
CTRL -->|"stamp"| RCPT["Deployment receipt"]
end
subgraph OP["Observability plane"]
CLUS --> MET["Metrics"]
CLUS --> LOG["Logs"]
CLUS --> TRC["Traces"]
RCPT --> AUD["Audit trail"]
end
Edges are signed: a webhook carries an OIDC token, a push carries a cosign signature, a reconcile carries a receipt. An unsigned edge is an edge where any party can impersonate any other.
The seven components
- Engineer. SSH key and signing key. The terminal is not a component.
- Source repo. Branch protection, signed commits, required reviewers.
- CI workflow. Pinned revision on an ephemeral runner that signs outputs, writes provenance, and emits an SBOM. Identity is an OIDC token.
- Registry. OCI by digest. Tags are for humans.
- GitOps controller. Reconciles the cluster to the manifest and stamps the receipt.
- Cluster. Runtime. Holds resources and annotations.
- Observability. Metrics, logs, traces, and the audit trail derived from receipts.
What this architecture is not
Not a vendor diagram (Argo CD diagrams end at the cluster; Actions diagrams end at the registry). Not a tool inventory (swapping Argo CD for Flux does not change the architecture). Not a single pipeline (the pipeline is one edge; the architecture is the graph). Not a single repository (source, manifests, workflows, postmortems live in separate repos).
Production discipline
- The diagram is the contract. A change to the architecture is a change to the diagram first.
- One identity per component. Sharing identities collapses boundaries.
- Every edge is signed. Unsigned edges are impersonation paths.
Cross-course references
- This course, Part LXIV (Auditability) - the six links the architecture encodes.
- This course, Part LXX (SLSA) - the build-plane provenance the architecture requires.
- Kubernetes for Production Sysadmins - Parts XX-XXII cover the runtime plane.
Quiz
Knowledge check · 4 questions
Q1. A team replaces Argo CD with Flux and the audit chain still works end-to-end. What does this tell you about the reference architecture?
Q2. A reference architecture treats the developer's laptop as a component because the developer can run kubectl against the cluster.
Q3. Name the four planes of the reference architecture and the plane where the audit trail lives.
Q4. Identify the deviations from the reference architecture.
A team uses GitHub Actions, ECR, Argo CD, Prometheus, and Loki. Engineers routinely `kubectl apply` from laptops during incidents. The manifest repo and the application repo are the same repository. Argo CD's service account has cluster-admin on every cluster.
Passing score: 75%. Answers are checked in this browser.