Capstone 2: End-to-End GitOps Production Cluster with Argo CD, Prometheus & RBAC
Assemble a production-shaped GitOps cluster with Argo CD, observability, and RBAC.
In plain words
The capstone is an autopilot with an approved flight plan, instrument panel, access controls, and rehearsed emergency landing procedure. The simple Kubernetes rule is: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
Think of it like…
The capstone is an autopilot with an approved flight plan, instrument panel, access controls, and rehearsed emergency landing procedure.
Where you’ve seen it
During a controlled maintenance window, the platform operator runs argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -A. Expected evidence: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore. If the run instead shows this symptom, stop and restore the last known state: Automatic sync can prune a namespace removed by accident, high-privilege Argo CD access can bypass normal workload RBAC, and dashboards without retention or backups provide false readiness.
Words you’ll hear
- Capstone
- For this lesson, Capstone is the controlling idea: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
- Argo CD
- Argo CD is the checkpoint; run
argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -Aand inspect the owner chain. Automatic sync can prune a namespace removed by accident, high-privilege Argo CD access can bypass normal workload RBAC, and dashboards without retention or backups provide false readiness. - RBAC
- RBAC is the outcome to preserve; the cost is explicit: An end-to-end GitOps design gives auditability and repeatable promotion, but its agents, management credentials, recovery store, and observability plane become platform-critical services.
- Verification evidence
- The evidence command is
argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -A. It connects the declaration to this behavior: Assemble a production-shaped GitOps cluster with Argo CD, observability, and RBAC.
Visual diagram
Theory & deep dive
How Capstone reaches the intended state
Assemble a production-shaped GitOps cluster with Argo CD, observability, and RBAC. The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
The concrete checkpoint is argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -A; compare the Capstone owner, Argo CD state, and RBAC outcome instead of treating YAML acceptance as proof.
Run argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -A after the change and correlate the result with Events and the owning object. The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
Argo CD: failure boundary and production cost
Automatic sync can prune a namespace removed by accident, high-privilege Argo CD access can bypass normal workload RBAC, and dashboards without retention or backups provide false readiness. The prerequisite contract is concrete: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
An end-to-end GitOps design gives auditability and repeatable promotion, but its agents, management credentials, recovery store, and observability plane become platform-critical services. A safe design limits blast radius, records the last good configuration, and uses argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -A as a deterministic rollback checkpoint.
Capture the current state with argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -A, then correct the controlling manifest rather than patching a child object; the relevant divergence signal is specific: Automatic sync can prune a namespace removed by accident, high-privilege Argo CD access can bypass normal workload RBAC, and dashboards without retention or backups provide false readiness.
How it works, step by step
Step 1 of 41. Plan the lifecycle boundary
Inventory versions, capacity, state, backups, and ownership in a reversible plan: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
- Goal
- Assemble a production-shaped GitOps cluster with Argo CD, observability, and RBAC.
- Owner
- Capstone
When to use it & trade-offs
What it is
Assemble a production-shaped GitOps cluster with Argo CD, observability, and RBAC. The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
Why it matters: Automatic sync can prune a namespace removed by accident, high-privilege Argo CD access can bypass normal workload RBAC, and dashboards without retention or backups provide false readiness. The invariant at risk is specific: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore. The quickest fact check before changing the design is argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -A.
When to reach for it
- Use Capstone to enforce this invariant: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
- Use Argo CD evidence from
argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -Ain reviews and incident timelines. Assemble a production-shaped GitOps cluster with Argo CD, observability, and RBAC. - Choose the managed cloud or platform service route only when this cost is justified by governance or scale: An end-to-end GitOps design gives auditability and repeatable promotion, but its agents, management credentials, recovery store, and observability plane become platform-critical services.
When to avoid or be careful
- Avoid assuming Capstone is complete after YAML submission; the required behavior is concrete: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
- Avoid treating the next symptom as random; check the owner and state with
argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -Afirst: Automatic sync can prune a namespace removed by accident, high-privilege Argo CD access can bypass normal workload RBAC, and dashboards without retention or backups provide false readiness. - Avoid adopting a heavier platform wrapper before measuring its cost: An end-to-end GitOps design gives auditability and repeatable promotion, but its agents, management credentials, recovery store, and observability plane become platform-critical services.
Native, manual, and managed paths for Capstone
argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -A.Strengths: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
Watch out: An end-to-end GitOps design gives auditability and repeatable promotion, but its agents, management credentials, recovery store, and observability plane become platform-critical services. Recovery must also recognize this signal: Automatic sync can prune a namespace removed by accident, high-privilege Argo CD access can bypass normal workload RBAC, and dashboards without retention or backups provide false readiness.
argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -A; the expected invariant is: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.Strengths: argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -A gives immediate feedback without first building a platform layer.
Watch out: A manual change can hide drift, and unlike Capstone, it does not make this symptom self-documenting: Automatic sync can prune a namespace removed by accident, high-privilege Argo CD access can bypass normal workload RBAC, and dashboards without retention or backups provide false readiness.
argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -A.Strengths: Platform controls can wrap this exact behavior in policy or dashboards: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
Watch out: The added platform ownership buys value at this cost: An end-to-end GitOps design gives auditability and repeatable promotion, but its agents, management credentials, recovery store, and observability plane become platform-critical services.
Interview signals & numbers to know
When this topic comes up
- Interview anchor: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
- Trace Capstone to RBAC through Argo CD; the invariant is: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
- Recognize the symptom: Automatic sync can prune a namespace removed by accident, high-privilege Argo CD access can bypass normal workload RBAC, and dashboards without retention or backups provide false readiness.
- Justify the cost: An end-to-end GitOps design gives auditability and repeatable promotion, but its agents, management credentials, recovery store, and observability plane become platform-critical services.
- Verify with argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -A instead of only inspecting YAML.
Benchmarks & rules of thumb
- 1
- Git source should own promoted intent
- 3
- operational pillars here: reconcile, observe, and authorize
- 0
- production readiness without restore and rollback exercises
Common mistakes & follow-ups
Common interview mistakes
- Debugging only the child object misses the Capstone owner contract: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore.
- Ignoring this telltale condition leads to unrelated changes: Automatic sync can prune a namespace removed by accident, high-privilege Argo CD access can bypass normal workload RBAC, and dashboards without retention or backups provide false readiness.
- Repeating
argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -Awithout an owner for remediation wastes retry cost. An end-to-end GitOps design gives auditability and repeatable promotion, but its agents, management credentials, recovery store, and observability plane become platform-critical services.
Likely interviewer follow-ups
- How would API output and runtime evidence prove this behavior: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore?
- Which owner object, logs, and Events would you inspect for this symptom-Automatic sync can prune a namespace removed by accident, high-privilege Argo CD access can bypass normal workload RBAC, and dashboards without retention or backups provide false readiness-?
- At what threshold would this cost become unacceptable: An end-to-end GitOps design gives auditability and repeatable promotion, but its agents, management credentials, recovery store, and observability plane become platform-critical services?
argocd app diff platform; argocd app sync platform --prune; kubectl get policyreport,prometheus,alertmanager -A, name the failure, then justify the cost. Invariant: The production GitOps capstone drives cluster and workload intent from reviewed Git, enforces Argo CD self-heal and RBAC, exports Prometheus telemetry, protects Secrets, and practices a restore. Failure: Automatic sync can prune a namespace removed by accident, high-privilege Argo CD access can bypass normal workload RBAC, and dashboards without retention or backups provide false readiness. Cost: An end-to-end GitOps design gives auditability and repeatable promotion, but its agents, management credentials, recovery store, and observability plane become platform-critical services.Knowledge check
Put it into practice
Practice related interview Q&A
Apply Capstone 2: End-to-End GitOps Production Cluster with Argo CD, Prometheus & RBAC with generative AI interview Q&A and hands-on practice.