Architecture · illustrative & vendor-neutral

One picture, seven layers

Users and apps never call models directly. A gateway is the single front door; AI services run on a Kubernetes platform; the platform runs on GPU and CPU servers, storage and fabric. Security and operations cut across everything. Click any box to see what it does.

The most important slide

Private Cloud AI reference architecture

Walk it top-down: users → access → AI services → enterprise data, all running on the platform layer, which runs on infrastructure. The right-hand column applies to every layer.

Who owns which layer

Architect’s habitWrite down every interface between layers and its owner. Most production incidents in AI platforms happen at a boundary: a driver upgrade that breaks a runtime, a quota nobody owns, a model alias changed without notice.
Trace it end to end

What happens when someone asks a question

Flow 1 — a question

  1. Employee asks the assistant a question inside an SSO session.
  2. Gateway validates the token, applies quota, records a request ID.
  3. Orchestrator embeds the question and searches the vector index with the user’s groups as a filter.
  4. Orchestrator builds a grounded prompt with the top passages.
  5. Serving runtime generates the answer on a GPU — prefill, then decode.
  6. Answer + citations return; metrics and audit metadata are written.

Flow 2 — a new policy document

  1. Document is published to the wiki with an access group.
  2. Ingestion connector detects the change event.
  3. Parser extracts text; chunker splits it; embedder vectorises chunks.
  4. Chunks + vectors + access labels are upserted to the index.
  5. Chunks for the previous version are deleted.
  6. Ingestion metrics (processed, failed) are recorded.
Inside one accelerated server

What decides what fits and how fast

CAPACITY

Memory capacity → what fits

Weights + KV cache + runtime overhead must fit in GPU memory, with headroom.

BANDWIDTH

Memory bandwidth → token speed

Decode re-reads the weights for every output token, so bandwidth sets per-user speed.

COMPUTE

Compute → prefill & batching

More compute means faster prompt processing and larger batches of concurrent users.

Formulas give memory, not speedLoad-test for throughput. Also confirm rack power and cooling early — dense GPU servers draw several kilowatts each, and many data centres hit power limits before space limits.

GPU memory classes used in examples on this site

Generic classes only. Confirm the exact memory, bandwidth and partitioning support of any accelerator in its manufacturer’s documentation — the sizing method is the same for every vendor.

The platform layer

Kubernetes turns GPU servers into a shared, self-service pool

Namespaces + quotas

A GPU budget per team; LimitRange defaults stop pods escaping accounting.

Taints & tolerations

GPU nodes only for GPU work — gateways and databases stay on CPU nodes.

Startup & readiness probes

Model loading takes minutes; without a startup probe liveness checks kill the pod mid-load.

Secrets + RBAC + NetworkPolicy

Least privilege: only the gateway may reach model servers; keys never in images.

GPU requests in one sentenceGPUs are extended resources advertised by a vendor device plugin; pods request whole units in limits, and all GPUs for a pod must come from one node — otherwise the pod stays Pending.
Defence in depth

Five zones — every hop authenticates, authorises and logs

🪪

Identity at every hop

SSO and MFA for users, a token-checking gateway, mTLS between services, short-lived secrets from a manager.

🚫

Model zone has no internet

Model servers have no outbound egress and pull only signed, approved artifacts from the internal registry.

🧱

Guardrails, ACLs and agents

Input and output checks at the gateway, ACL-filtered retrieval, and agent tools limited to the user’s own rights.

No single fix for prompt injectionRetrieved text, tool output and user input are data, not instructions. Design so that a successfully manipulated model cannot do much harm: least-privilege tools and human confirmation for consequential actions.
Why did the AI say that?

Every answer traceable to approved data and models

Data governance

Owners, classification, redaction and retention before data reaches AI stores or agents. Derived copies inherit the source’s obligations.

Model governance

Licence, security scan, evaluation and approval; serving pulls only versions from an immutable registry.

Accountability

Log who asked, which model version, which sources and which agent actions — reviewed against an AI policy.

Run it like a critical system

Observability, lifecycle and failure domains

GPU memory at 95% is often normalMany runtimes pre-allocate most GPU memory for the KV cache at start-up. Alert on user-visible symptoms (latency, errors) and KV-cache pressure, not raw GPU memory.
Every alert needs a runbookMeaning, impact, checks, fixes and escalation — linked from the alert itself. Put deploy markers on dashboards: most incidents follow a change.