Sprint 6 ends with one project: a multi-tenant ERP product with an AI copilot, built on AWS, that a DevOps engineer can reproduce with no customer data. This overview fixes the scenario, the requirements, the whole architecture (one still diagram and one animated flow), where each of the 26 tools introduced this sprint and the reused ones fits, the AWS design, the cost, and the repository layout. Six build parts follow. Read this post once, then build from Part 1.
What this is and is not. The posts are a reference blueprint: the architecture, the flow and the wiring between the tools, with a checkpoint for every step. They are engineering guidance, not legal, tax or accounting advice, and an ERP that handles real financial records needs its own review for the rules that apply to the business using it.
The scenario
A software company sells an ERP to mid-sized manufacturers and distributors. One shared platform serves many customers, called tenants. Each tenant gets finance (ledger, payables, receivables), inventory and purchasing, sales orders and a reporting area. On top sits a copilot: users ask questions in plain language (“which suppliers are late on open purchase orders?”), upload invoices and contracts, and approve drafted actions.
The example targets, which each operator would adjust:
- 200 tenants on one platform, with no tenant able to see or slow another;
- ERP page responses under 300 ms at the 95th percentile, copilot answers streamed within 3 seconds;
- every state change published as an event, and month-end close running as a durable workflow with human approvals;
- the copilot only does what the signed-in user may do, and every answer is traceable to its prompt, documents and tools;
- a release reaches production only with signed evidence of who built what from which commit;
- cost visible per tenant, and the platform restorable after a loss.
There is no real customer in this build. A small seed generator creates tenants, items, suppliers, orders and invoices, and a handful of sample PDFs stand in for contracts. The generator is a short Python program that Part 2 gives in full; it is not a Landscape project.
Requirements
| Requirement | Example target | How the design meets it | Built in |
|---|---|---|---|
| Tenant isolation | One tenant cannot read or starve another | Capsule tenants with quotas and policy defaults; Cilium network policy; Istio mutual TLS; OpenFGA relations per tenant | Parts 1, 5 |
| Public API with plans | Per-tenant rate limits and auth | kgateway with Kuadrant policy, tokens from Keycloak | Part 5 |
| Events and contracts | No breaking change unnoticed | Kafka on MSK, schemas in Apicurio | Part 2 |
| Durable business flows | Approval and month-end close survive restarts | Cadence workflows with human steps | Part 2 |
| Reporting | Dashboards over millions of rows | Kafka feeds ClickHouse | Part 2 |
| Schema changes in Git | Reviewed, repeatable | SchemaHero from Git against RDS PostgreSQL | Part 2 |
| Copilot grounded in documents | Answers cite a source | Docling to pgvector and Apache AGE, LangGraph agent, MCP tools | Part 4 |
| Safe copilot | No data from another tenant, no unapproved action | agentgateway auth and limits, NeMo Guardrails rails, tools scoped by Keycloak and OpenFGA, gVisor for generated code | Part 4 |
| Own model path | Train, evaluate, register, serve | Kubeflow Trainer and Pipelines, Unsloth, DeepEval gate, MatrixHub, vLLM on KServe | Part 3 |
| Release evidence | Only attested builds run | Tekton builds, in-toto attestations, Kyverno admission, Argo CD delivery | Part 5 |
| Gradual change | Per-tenant feature switches | OpenFeature with Unleash | Part 5 |
| Operate and recover | Find the cause fast, restore after loss, know the cost | Prometheus, OpenTelemetry, HolmesGPT, Litmus game days, Velero and Kanister, Karpenter and OpenCost | Part 6 |
Three limits are worth saying now. The copilot answer target depends on the model choice in Part 3, which is decided on prices read that day. The ERP is deliberately small: it shows how the parts connect, not a full accounting package. And the platform runs one EKS cluster in the primary Region; the second Region appears only as a backup and restore target in Part 6, not as an active-active design.
Architecture
The top lane is an ERP request. The next lane is a copilot question. Below that sit the knowledge and model paths, and at the bottom how the platform is shipped and run.
One image, every box a real tool with its logo and the part that builds it. Open the zoomable diagram (scroll or pinch to zoom, drag to pan), or download it as SVG or PNG.
Blue is the user, orange the AWS services, grey platform and data, purple the AI native tools, green observation and operation, brown change control. Dashed arrows are on demand or queries. Tools that are used but not drawn are listed under “Does every tool wire?” below, so the picture stays readable.
Animated flow
Open the animated flow on its own page. Four flows can be played: the ERP request (nine steps, from the browser through the edge, gateway, mesh and services to Kafka and ClickHouse), the copilot question (eleven steps through agentgateway, guardrails, the agent, tools, retrieval, the model and traces), the model path (seven steps from training to a registered, served model), and the ship and operate loop (a chain of chips from the portal to cost per tenant). Pause, step and replay with the controls; with reduced motion set in your system the page shows steps without moving dots, and every node can be reached with the keyboard.
The tools and how they are wired
Every box in the diagram appears below, grouped by what it does. “Part” names the part whose steps and checkpoints install and prove the tool. Where a brief on this site covers a tool, the link goes there. Sprint 6 briefs are marked “New”.
| Tool | From | Part that wires it | Connects to | What travels |
|---|---|---|---|---|
| Capsule | New · Capsule | Part 1 | Kubernetes API, Cilium, Kyverno | Tenant, namespaces, quotas, policy defaults |
| Istio | Earlier · Istio | Part 1 | Every ERP service, gateway, MCP tools | mTLS, gRPC and HTTP between modules |
| Cilium | Earlier · Cilium | Part 1 | Pods, namespaces | Network policy, identity-based traffic rules |
| Karpenter | Earlier · Karpenter | Parts 1, 3 | EKS, EC2, KServe | Node provisioning for CPU and GPU pods |
| kgateway | Earlier · kgateway | Part 5 | Kuadrant, Keycloak, Istio | Public API traffic, Gateway API routes |
| Kuadrant | New · Kuadrant | Part 5 | kgateway, Keycloak | Plans, rate limits, auth policy |
| Keycloak | Earlier · Keycloak | Part 5 | Kuadrant, agentgateway, ERP services | OIDC tokens with tenant claims |
| OpenFGA | Earlier · OpenFGA | Part 5 | ERP services, MCP tools | Relationship checks: may this user do this to this record |
| Apache Kafka (Amazon MSK) | Earlier · Kafka | Part 2 | ERP services, ClickHouse, Cadence, Docling | Domain events by tenant key |
| Apicurio Registry | Earlier · Apicurio | Part 2 | Kafka producers and consumers | Event schemas and compatibility rules |
| Cadence | New · Cadence | Part 2 | Kafka, ERP services, human approval tasks | Workflow starts, activity calls, signals |
| ClickHouse | New · ClickHouse | Part 2 | Kafka, dashboards, copilot queries | Events in, analytic queries out |
| SchemaHero | New · SchemaHero | Part 2 | RDS PostgreSQL, Git | Table definitions as Kubernetes objects, applied as migrations |
| CloudNativePG | Earlier · CloudNativePG | Parts 2, 4 | Apache AGE, backups to S3 | PostgreSQL for the graph store |
| CubeFS | New · CubeFS | Part 2 | ERP services, Docling, datasets | Documents and attachments, S3-compatible and file access |
| Docling | New · Docling | Part 4 | CubeFS, pgvector, Apache AGE | PDFs in, structured text and tables out |
| pgvector | New · pgvector | Part 4 | Docling, the agent | Embeddings and similarity queries |
| Apache AGE | New · Apache AGE | Part 4 | Docling output, the agent | Supplier, item and bill-of-materials graph; openCypher queries |
| Instructor | New · Instructor | Part 4 | The agent, vLLM | Validated JSON from model output (a library inside the agent, not a service) |
| LangGraph | New · LangGraph | Part 4 | kagent, MCP tools, vLLM, Langfuse | Agent state, tool calls, checkpoints |
| kagent | Earlier · kagent | Part 4 | LangGraph, Kubernetes | Hosts the agent as a Kubernetes workload |
| MCP | New · Model Context Protocol | Part 4 | The agent, ERP API through the mesh | Tool definitions and tool calls carrying the caller’s token |
| NeMo Guardrails | New · NeMo Guardrails | Part 4 | agentgateway, the agent | Input and output rails: topic, PII, allowed actions |
| agentgateway | New · agentgateway | Part 4 | Keycloak, guardrails, the agent, vLLM | Authenticated LLM and tool traffic, per-tenant limits |
| gVisor | New · gVisor | Part 4 | containerd | Sandboxed runtime class for generated code and report scripts (not drawn) |
| Langfuse | New · Langfuse | Part 4 | The agent, OpenTelemetry | Traces, token counts, cost, prompt versions |
| KServe | Earlier · KServe | Part 3 | vLLM, Karpenter, Istio | InferenceService objects, autoscaled model pods |
| vLLM | New · vLLM | Part 3 | KServe, MatrixHub, the agent | OpenAI-compatible requests and streamed tokens |
| MatrixHub | New · MatrixHub | Part 3 | vLLM, Unsloth output, DeepEval gate | Model weights and versions |
| Kubeflow Trainer | New · Kubeflow Trainer | Part 3 | Unsloth, Karpenter | Distributed training jobs |
| Kubeflow Pipelines | New · Kubeflow Pipelines | Part 3 | Trainer, DeepEval, MatrixHub | Data, train, evaluate, register runs |
| Unsloth | New · Unsloth | Part 3 | Trainer, MatrixHub | LoRA fine-tuning of a small model |
| DeepEval | New · DeepEval | Parts 3, 4 | Pipelines, CI, the agent | Test cases and scores that gate a model or a prompt change |
| Project Jupyter | New · Project Jupyter | Part 3 | CubeFS, ClickHouse | Analyst notebooks over tenant data (not drawn) |
| Backstage | New · Backstage | Part 5 | Tekton, Argo CD, catalog in Git | Software templates and the service catalog |
| Tekton | Earlier · Tekton | Part 5 | Git, ECR, in-toto | Build tasks and image digests |
| in-toto | New · in-toto | Part 5 | Tekton, Kyverno | Signed attestations of each build step |
| Kyverno | Earlier · Kyverno | Parts 1, 5 | in-toto evidence, Capsule | Admission policy: deny images without evidence |
| Argo CD | Earlier · Argo | Parts 1, 5 | Git, the cluster | Desired state from Git |
| Unleash | Earlier · Unleash | Part 5 | OpenFeature SDK in services | Per-tenant flag values |
| OpenFeature | Earlier · OpenFeature | Part 5 | Unleash | Vendor-neutral flag evaluation calls |
| Prometheus | Earlier · Prometheus | Part 6 | HolmesGPT, Perses | Metrics and alerts |
| OpenTelemetry | Earlier · OpenTelemetry | Parts 4, 6 | Jaeger, Langfuse, Prometheus | Traces, metrics, logs |
| Jaeger, Loki, Perses | Earlier · Jaeger, Loki, Perses | Part 6 | OpenTelemetry, HolmesGPT | Trace storage, log storage, dashboards (not drawn) |
| HolmesGPT | New · HolmesGPT | Part 6 | Prometheus, Loki, Kubernetes | Alert in, investigation and probable cause out |
| Litmus | Earlier · Litmus | Part 6 | Kubernetes workloads | Chaos experiments for game days |
| Velero and Kanister | Earlier · Kanister; Velero is covered inside the Longhorn brief | Part 6 | S3, PostgreSQL, ClickHouse | Cluster object backups and data-aware backups |
| OpenCost | Earlier · OpenCost | Part 6 | Prometheus, Capsule labels | Cost per tenant namespace |
| OpenTofu and Crossplane | Earlier · OpenTofu, Crossplane | Part 1 | AWS | Foundation as code; platform-requested AWS resources |
Does every tool wire?
Yes in the design, with limits stated plainly. Each row below is something to confirm at the checkpoint in the part that builds it.
| Tool | Wires? | The limit |
|---|---|---|
| Kuadrant on kgateway | Not confirmed | The Kuadrant material I read on 3 December names Istio as the Gateway API provider it supports; kgateway was not named. Part 5 chooses between Kuadrant policy on an Istio gateway and kgateway with its own rate-limit and auth policy, and the diagram will be redrawn if the choice changes. |
| agentgateway | Yes, as its own gateway | agentgateway runs its own control plane for LLM and MCP traffic, so it sits beside kgateway rather than behind it. |
| Apache AGE on RDS | Not confirmed | pgvector is on the RDS supported-extension path; AGE was not in what I read. The design runs AGE on CloudNativePG and keeps the system of record on RDS. |
| MatrixHub, Unsloth | Yes | Both have an AI Native placement on the Landscape only. |
| Kubeflow Pipelines | Yes | Its brief carries the NON CNCF label because the Landscape entry does; it is part of the graduated Kubeflow project, and Part 3 uses it as such. |
| gVisor | Yes | Needs a runtime class on nodes; the Karpenter node class in Part 1 includes it. Not drawn. |
| Instructor, Jupyter, SPIRE, cert-manager, external-secrets | Yes | Libraries or helpers around the main path, left out of the picture to keep it readable. |
| Hive Commons, Temporal, Accelerator tools | Not used | Reasons are in the sprint plan: they duplicate Cadence, or pay off on multi-GPU clusters this build does not need. |
The 21 sub-categories
Every sub-category has exactly one named tool. Links go to the brief, new or from an earlier sprint.
| # | Sub-category | ERP tool | Brief |
|---|---|---|---|
| 1 | Application Definition & Image Build | Backstage, with Helm | Backstage, Helm |
| 2 | Continuous Integration & Delivery | Tekton builds, Argo CD delivers | Tekton, Argo |
| 3 | Database | RDS PostgreSQL with SchemaHero; CloudNativePG for the graph | SchemaHero, CloudNativePG |
| 4 | Streaming & Messaging | Kafka on MSK with Apicurio | Kafka, Apicurio, Strimzi |
| 5 | Scheduling & Orchestration | Capsule on Kubernetes with KEDA and Knative | Capsule, Kubernetes, KEDA, Knative |
| 6 | Service Mesh | Istio | Istio |
| 7 | API Gateway | kgateway with Kuadrant | Kuadrant, kgateway |
| 8 | Coordination & Service Discovery | etcd and CoreDNS | etcd, CoreDNS |
| 9 | Service Proxy | Envoy | Envoy |
| 10 | Remote Procedure Call | gRPC, Connect RPC | gRPC, Connect RPC |
| 11 | Cloud Native Storage | CubeFS; Velero and Kanister for backup | CubeFS, Kanister |
| 12 | Cloud Native Network | Cilium | Cilium |
| 13 | Container Runtime | containerd, gVisor | gVisor, containerd |
| 14 | Security & Compliance | in-toto with Kyverno, cert-manager, Keycloak, OpenFGA, external-secrets | in-toto, Kyverno, cert-manager, Keycloak, OpenFGA, external-secrets |
| 15 | Container Registry | Harbor and Amazon ECR | Harbor |
| 16 | Automation & Configuration | Cadence; OpenTofu and Crossplane | Cadence, OpenTofu, Crossplane |
| 17 | Key Management | SPIRE and AWS KMS | SPIRE |
| 18 | Observability | HolmesGPT over Prometheus, OpenTelemetry, Jaeger, Loki, Perses | HolmesGPT, Prometheus, OpenTelemetry, Jaeger, Loki, Perses |
| 19 | Chaos Engineering | Litmus, Chaos Mesh | Litmus, Chaos Mesh |
| 20 | Continuous Optimization | Karpenter, OpenCost | Karpenter, OpenCost |
| 21 | Feature Flagging | OpenFeature with Unleash | OpenFeature, Unleash |
The AI Native map
| Category | Sub-category | Pick | Brief |
|---|---|---|---|
| AI Agent | Agent Framework | LangGraph on kagent | LangGraph, kagent |
| AI Agent | Structured Output | Instructor | Instructor |
| AI Agent | Vector Database | pgvector | pgvector |
| AI Agent | Guardrail | NeMo Guardrails | NeMo Guardrails |
| AI Agent | Workflow Orchestration | Cadence | Cadence (not a Landscape placement for this category; stated plainly) |
| AI Agent | Knowledge Graph | Apache AGE | Apache AGE |
| AI Agent | Protocol | MCP | MCP |
| AI Agent | Evaluation | DeepEval | DeepEval |
| AI Agent | RAG | Docling | Docling |
| Inference | Framework | KServe | KServe |
| Inference | Runtime | vLLM | vLLM |
| Training | Distributed Training | Kubeflow Trainer | Kubeflow Trainer |
| Training | Post Training | Unsloth | Unsloth |
| Data | Data Architecture | ClickHouse and Kafka | ClickHouse, Kafka |
| Data | Data Science | Project Jupyter | Project Jupyter |
| AI Native Infra | Gateway | agentgateway | agentgateway |
| AI Native Infra | Workload Runtime | gVisor, containerd | gVisor |
| AI Native Infra | Storage | CubeFS | CubeFS |
| AI Native Infra | Model Asset and Registry | MatrixHub | MatrixHub |
| AI Native Infra | Observability | Langfuse with OpenTelemetry | Langfuse |
| AI Native Infra | CI and Delivery | Kubeflow Pipelines | Kubeflow Pipelines |
| AI Native Infra | Accelerator and SuperPod | none | Considered, not wired: the ERP’s models are small, so a mention in Part 3 only |
Not wired in this sprint, with the reason: State and Memory and Agent Tool pick-ups are left for later planning; Hive Commons governs coding agents, not business workflows; Temporal duplicates Cadence; KAI Scheduler, HAMi, Volcano and Kueue pay off when GPU time is long, which it is not here.
The data path
An ERP request. The browser reaches CloudFront with WAF in front, resolved by Route 53. The load balancer hands the request to the gateway, where Kuadrant policy checks the plan, the rate limit and the token issued by Keycloak. The request enters the Istio mesh over mutual TLS, with Cilium enforcing network policy, and reaches an ERP service running in the tenant’s Capsule namespaces. The service asks OpenFGA whether the user may touch the record, reads or writes RDS PostgreSQL, stores documents in CubeFS and S3, and publishes an event to Kafka on MSK whose schema is registered in Apicurio. ClickHouse consumes the topic for reports; Cadence starts an approval or close workflow from the same event.
A copilot question. The user’s question goes to agentgateway, which checks the token and the tenant’s limits, then through NeMo Guardrails input rails to the LangGraph agent running on kagent. The agent retrieves passages from pgvector and relations from Apache AGE, calls ERP tools exposed over MCP (each call carries the caller’s token, so Istio, OpenFGA and the ERP API see the real user), and sends the prompt to vLLM served through KServe. Output rails check the answer before it returns. Every step is traced to Langfuse and OpenTelemetry. Generated code, if any, runs under gVisor.
Documents. Uploads land in CubeFS and S3. Docling turns them into text and tables, which are chunked into pgvector and linked into Apache AGE.
Models. Kubeflow Pipelines runs data, train (Trainer with Unsloth), evaluate (DeepEval) and register. Only a model that passes the gate is registered in MatrixHub, and vLLM pulls weights from there.
Change. Backstage templates a service; Tekton builds and in-toto signs each step; Kyverno admits only images with evidence; Argo CD delivers; Unleash decides which tenant sees what.
The AWS design
Region, accounts and names
One account and one Region for the build: ap-south-1 (Mumbai) as the primary, with ap-south-2 (Hyderabad) only as a backup and restore target in Part 6. Part 1 checks the availability of each service in each Region with one command before creating anything. Use a dedicated lab account or a clearly tagged set of resources.
Network, EKS and nodes
A VPC with three Availability Zones, private subnets for nodes, databases and MSK, and public subnets only for the load balancer. NAT gateways give nodes outbound access; VPC endpoints for S3 and ECR reduce what passes through NAT. EKS runs with Karpenter managing nodes: a general CPU pool for the ERP, and a separate GPU pool that exists only while Part 3 needs it. Workloads get narrow roles through EKS Pod Identity.
Data services
RDS for PostgreSQL holds the ERP system of record, with automated backups and encryption under a KMS key. Amazon MSK Provisioned carries events. ElastiCache holds sessions and short-lived caches. S3 holds documents, backups and evidence, and CubeFS gives the in-cluster file and S3-compatible view. CloudNativePG runs the graph database with Apache AGE.
Edge, keys and registry
Route 53 and CloudFront with WAF form the public edge. KMS keys protect data at rest; SPIRE gives workloads identity inside the mesh; external-secrets reads from Secrets Manager. Images live in Amazon ECR, with Harbor as the in-cluster option from Sprint 1.
Prerequisites
Accounts and roles
- An AWS account with billing enabled, ideally dedicated to the lab, and an administrator role for the person building. Workloads get narrow roles through Pod Identity; each part lists them as it creates them.
- A GitHub account and one repository for the platform code.
- A domain you can delegate to Route 53 (optional; Part 1 has a no-domain path using the load balancer name, with the limits that implies for TLS and OIDC).
- For Part 3 only: quota for GPU instances in the Region, requested early because approval can take time.
Workstation
Git, the AWS CLI, kubectl, Helm, OpenTofu, and Python 3.11 or later for the seed generator and the notebooks. Each part lists exact versions at its start and says where to confirm them.
Cost note, read on 3 December 2026
Only prices I could read on the day are used, and they are US East (N. Virginia) list prices. Mumbai prices were not on the pages I read, so treat every figure as the shape of the bill and confirm it in the AWS Pricing Calculator.
| Item | Price read | Source |
|---|---|---|
| EKS cluster, standard support | $0.10 per cluster per hour (about $73 a month) | EKS pricing |
| EKS cluster, extended support | $0.60 per cluster per hour | EKS pricing |
| MSK Standard broker, kafka.m7g.large | $0.204 per hour | MSK pricing example |
| MSK storage | $0.060 per GB-month in US East, in the pricing example | MSK pricing page |
| NAT gateway | $0.045 per hour and $0.045 per GB processed | VPC pricing |
| RDS PostgreSQL, db.m7g.large | about $123 a month on demand, US East; this is a third-party aggregator figure, not an AWS page | Bytebase, updated 20 July 2026 |
| g5.xlarge (one A10G GPU), on demand | about $1.006 per hour; spot about $0.43 to $0.51; third-party aggregator figures, not AWS pages | Holori |
| ElastiCache, CloudFront, WAF, S3, KMS, ECR, Route 53 | not read, so not itemised |
What the readable lines add up to: three MSK brokers are $0.612 an hour, about $447 a month; the EKS fee is about $73; three NAT gateways are $0.135 an hour, about $99 a month, before data. A three-day build that runs MSK for 10 hours a day is 30 hours, about $18 for the brokers. A 10-hour GPU session on a g5.xlarge is about $10 on demand. Node, RDS and storage costs depend on the sizes each part picks, which is why Part 3 reads GPU and CPU prices again on its own day before deciding.
Cleanup
Each part ends with a cleanup block that removes only what it created. Reverse order: Part 6 backups and chaos experiments first, then the Part 5 delivery objects, Part 4 agents and stores, Part 3 GPU pool and model jobs (the costly item), Part 2 data services, and Part 1 last, with MSK, RDS and NAT removed before the cluster.
Repository and namespace layout
One repository, erp-platform, holds everything. Parts create the folders as they need them.
erp-platform/
infra/ OpenTofu: VPC, EKS, RDS, MSK, ElastiCache, KMS, Route 53, CloudFront, ECR
gitops/ Argo CD applications: platform/ and apps/
crossplane/ Claims for buckets, queues and roles the platform requests
tenancy/ Capsule tenants, quotas, network and policy defaults
mesh/ Istio, Cilium policy, gateway and Kuadrant policy
data/ SchemaHero tables, Kafka topics, Apicurio schemas, ClickHouse tables
workflows/ Cadence workflows and activities
erp/ The sample ERP services and the seed generator
ai/ Docling pipeline, retrieval, LangGraph agent, MCP tools, guardrail config
models/ Kubeflow pipelines, Unsloth training code, DeepEval cases, KServe manifests
delivery/ Backstage templates, Tekton pipelines, in-toto layouts, Kyverno policies, flags
ops/ Prometheus rules, OpenTelemetry config, Litmus experiments, Velero and Kanister
docs/ Runbooks and the checkpoint evidence
| Area | Namespaces |
|---|---|
| Platform | argocd, capsule-system, istio-system, kube-system, kyverno, karpenter, crossplane-system |
| Data | kafka-client, data, cnpg-system, cubefs, clickhouse |
| AI | ai, kserve, kubeflow, langfuse |
| Delivery and ops | tekton-pipelines, backstage, unleash, monitoring, holmes, litmus, velero |
| Tenants | one or more namespaces per tenant, created and limited by Capsule |
These names are the series’ convention, not required by the tools.
Decisions
| Decision | What I chose | Why |
|---|---|---|
| Cloud and Region | AWS, Mumbai primary, Hyderabad for backups | Chosen at planning; confirmed against service availability in Part 1 |
| Tenancy | Capsule tenants on one shared cluster | Cheaper than a cluster per tenant; the isolation comes from quotas, policy, network and identity together |
| System of record | Amazon RDS for PostgreSQL | Not a CNCF project, but managed backups and encryption are the right home for records that must outlive the cluster |
| Graph | Apache AGE on CloudNativePG | AGE support on RDS was not confirmed; pgvector is on RDS |
| Events | Amazon MSK with Apicurio contracts | Managed brokers, schemas in Git |
| Workflows | Cadence starts workflows from Kafka events | Approvals and month-end close need durable state; each start is an event consumer |
| Gateways | kgateway with Kuadrant for public API; agentgateway for model and tool traffic | Different traffic, different policy; the Kuadrant provider question is open (see above) |
| Model hosting | vLLM on KServe; GPU or small CPU model decided in Part 3 on prices read that day | A cost decision, not a technical one |
| Kubeflow | Trainer and Pipelines stay two briefs under one project | Different jobs, one project |
| Extras | Not part of this sprint | They will be planned in Sprint 7 |
| Left out of the picture | gVisor, Instructor, Jupyter, SPIRE, cert-manager, external-secrets, Jaeger, Loki, Perses | Used where each part says; omitted so the diagram stays readable |
Design notes and version checks
- Kuadrant provider. The Kuadrant material I read on 3 December 2026 named Istio as the supported Gateway API provider; kgateway was not named there. Confirm in Kuadrant’s current documentation before Part 5, and expect a redraw if the answer is no.
- Apache AGE on RDS. The RDS extension list I read confirmed pgvector (0.8.0 on current minor versions) but I did not find AGE. Confirm with
SHOW rds.extensions;on your chosen engine version. - Prices. Every price above is US East. Three come from third-party aggregators and are marked. Mumbai prices need the Pricing Calculator.
- Not run. This overview was written from documentation and the briefs on this site; nothing in it was built on an AWS account. Each part’s checkpoints are how you confirm the design on yours. If one fails, use the “Suggest a correction” link on the page.
- Versions. Each part states the versions it assumes and where to check them; Kubernetes and EKS minor versions move quickly, and an EKS cluster left on an old minor falls into the extended-support price above.
The six parts
- Part 1, AWS foundation and tenancy (3 Dec, 10 PM IST): OpenTofu and Crossplane, the VPC, EKS with Karpenter, RDS, ElastiCache, S3 and KMS, Route 53 and CloudFront, Capsule tenants, Cilium, Istio.
- Part 2, Core ERP data and events (4 Dec, 7 AM IST): SchemaHero, RDS and CloudNativePG, Kafka with Apicurio, Cadence, the ClickHouse feed, CubeFS documents.
- Part 3, The model path (4 Dec, 10 PM IST): MatrixHub, Karpenter GPU nodes, vLLM on KServe, Kubeflow Trainer and Pipelines, Unsloth, DeepEval gates; GPU or CPU decided here.
- Part 4, The copilot (5 Dec, 7 AM IST): Docling, pgvector, Apache AGE, Instructor, LangGraph on kagent, MCP, NeMo Guardrails, agentgateway, gVisor, Langfuse.
- Part 5, Edge, access and delivery (5 Dec, 2 PM IST): Kuadrant, Keycloak and OpenFGA per tenant, flags, Backstage, Tekton, Argo CD, in-toto and Kyverno gates.
- Part 6, Operate (5 Dec, 10 PM IST): Prometheus, OpenTelemetry, HolmesGPT, Litmus game days, backups and a restore test, OpenCost, teardown, and a proposal for Sprint 7.
The parts link here and are linked from here as they are published.
Setup order and checklist
Build in this order. Each part starts from the state the previous part leaves, so do not start a part until the last item of the one before it is ticked.
Order at a glance: foundation and tenancy (Part 1) → data and events (Part 2) → model path (Part 3) → copilot (Part 4) → edge, access and delivery (Part 5) → operate (Part 6).
Part 1: AWS foundation and tenancy
- 1. Account and tools:
aws sts get-caller-identityshows the lab account and the workstation versions match the part - 2. Foundation: OpenTofu state bucket created, then VPC, subnets and EKS applied; all nodes
Ready - 3. Data services: RDS
availableand encrypted, MSKACTIVE, ElastiCache available - 4. Platform base: Argo CD syncing the repository; Crossplane providers healthy; Karpenter provisions a test node
- 5. Edge: Route 53 and CloudFront answer for the test hostname
- 6. Tenancy and mesh: two Capsule tenants exist; Cilium policy blocks cross-tenant traffic; Istio mutual TLS is on
Part 2: Core ERP data and events
- 7. Schema: SchemaHero applies the ERP tables from Git to RDS
- 8. Events: topics exist and Apicurio rejects an incompatible schema
- 9. Workflows: a Cadence approval workflow survives a worker restart
- 10. Reporting and documents: ClickHouse shows seeded events; CubeFS stores and returns a test file
Part 3: The model path
- 11. Registry and serving: MatrixHub holds a base model; vLLM answers through KServe
- 12. Training: a Trainer job finishes and writes a candidate model
- 13. Gate: DeepEval blocks a failing model and registers a passing one
- 14. Decision recorded: GPU or CPU choice written down with the prices read that day
Part 4: The copilot
- 15. Knowledge: Docling output lands in pgvector and Apache AGE; a query returns a cited passage
- 16. Agent: the LangGraph agent answers using an MCP tool under the caller’s token
- 17. Safety: NeMo Guardrails blocks an out-of-scope request; agentgateway limits a tenant
- 18. Traces: Langfuse shows the full trace of one question
Part 5: Edge, access and delivery
- 19. Gateway and identity: the gateway rejects a call without a token and applies a plan limit
- 20. Authorisation: OpenFGA denies a user another tenant’s record
- 21. Delivery: a build produces in-toto evidence; Kyverno rejects an image without it; Argo CD rolls out the good one
- 22. Flags: Unleash switches a feature for one tenant only
Part 6: Operate
- 23. Observability: Prometheus alert fires and HolmesGPT returns a probable cause
- 24. Resilience: a Litmus experiment runs and the platform recovers
- 25. Recovery: a Velero and Kanister restore into an empty namespace succeeds
- 26. Cost and teardown: OpenCost shows cost per tenant; the cleanup blocks run in reverse order and the account bill stops growing
