The platform team at Swartberg Health Administrators, a fictional South African medical scheme administrator, arrived at the production planning meeting with a Kubernetes design for the member-query assistant. It had three node pools, a service mesh, a GitOps controller and a cluster autoscaler. The application team looked at what the assistant actually was: a stateless API that calls hosted models through the AI gateway, a queue of ingestion workers that keep the retrieval index fresh, a managed vector store and a managed database for conversation state. Nothing in it needed a GPU. Nothing in it needed custom scheduling.
The disagreement was real, and both sides had a point. The platform team wanted one consistent way to run every service for the next five years. The application team wanted to ship in six weeks with a team of four. The meeting went better once someone drew the layers on the whiteboard, because the two teams were using "Kubernetes", "containers" and "the platform" to mean different things.
CloudNala's Architecture Must Earn Its Complexity series makes the general case that complexity needs evidence, and the distributed-systems tax prices it. Kubernetes is the engine, not the platform lists what has to surround a cluster before it is usable. This part applies those ideas to AI services specifically: which components they have, where each should run, and what changes in health checks, scaling and rollback.
Five layers that get merged in conversation
The container image is a packaging format. A Docker build puts code, runtime and dependencies into one artefact that runs the same way on a laptop, in a pipeline and in production. It is also the unit you scan, sign and record, as Part 6 explains.
The orchestrator schedules containers across machines and restarts them when they fail. Kubernetes is the common one. It is one way to run containers, not a requirement for using them.
The application platform is what developers actually deploy to: something that takes an image, runs it with secrets and configuration, routes traffic to it, scales it and keeps previous revisions. Cloud providers sell this as a managed service. Organisations that run Kubernetes have to build it themselves around the cluster.
The infrastructure is the region or data centre, with its CPUs, GPUs, network and storage, and the physical location of the data.
The AI service layer sits on top and is the one deployment plans most often leave out. Prompts, model routes, retrieval settings, tool definitions and evaluation sets change behaviour as much as code does. If they are not versioned and released together, no orchestrator can roll them back for you.
Separate the stateless from the stateful
Most AI services are a mix of components with very different deployment needs. Sort them before you choose a platform.
| Component | State | Where it should usually run | Note |
|---|---|---|---|
| API and agent harness | Stateless per request | Managed container or app platform | Task state goes to a durable store, never pod memory |
| Ingestion and embedding workers | Stateless, queue-driven | Same platform, scaled on queue depth | Idempotent, so a replay does not duplicate chunks |
| Queue or event stream | Stateful | Managed service | Dead-letter queue with a named owner |
| Vector store or search index | Stateful | Managed service where available | Back up, version and test restores like a database |
| Response cache | Ephemeral | Managed cache | Must respect permissions; see Part 5 |
| Task state and checkpoints | Durable | Managed database | Separate from the system of record |
| Self-hosted model inference | Large images, GPU, slow start | Managed inference, serverless GPU or dedicated GPU nodes | Only if you must host weights |
| Secrets | Sensitive | Managed secrets store | Injected at runtime, rotated |
Swartberg's assistant had only the first six. Every stateful piece was already available as a managed service in a South African cloud region. That settled most of the argument: the work left for an orchestrator was running two stateless container types.
The deployment decision matrix
| Managed AI service | Managed container or app platform | Managed Kubernetes | On-premises containers or private cloud | |
|---|---|---|---|---|
| What you operate | Configuration only | Images, configuration, scaling rules | Cluster add-ons, policies, upgrades, the platform around it | Everything down to hardware |
| Team needed | Application team | Application team with platform guardrails | A platform team with on-call cover | Platform and infrastructure teams |
| Scaling | Provider-managed | Built in, often to zero | Flexible, you configure it | Bounded by owned capacity |
| GPU self-hosting | Not applicable | Where the region offers it | Yes, with node pools you manage | Yes, with hardware you buy |
| Fits when | The service exists and meets requirements | Stateless services calling hosted models | Many services, a platform team, needs managed platforms cannot meet | A hard rule keeps data or inference on site |
| Main risk | Feature and region limits | Platform limits on networking or runtime | Operating cost and skill concentration | Capacity, power and hardware lifecycle |
Swartberg's answer was the second column for the assistant and its workers, with managed services for every stateful component. The board wrote down three triggers that would reopen the Kubernetes question: a need to self-host models across several services, more than about ten services needing shared networking policy, or a platform limit that blocks a production requirement. These triggers are illustrative, a decision record rather than a benchmark.
Health checks, autoscaling and rollback change for AI
The mechanics are familiar. The defaults are not always right for AI services.
Health checks. Kubernetes distinguishes three probes: liveness decides when to restart a container, readiness decides when it may receive traffic, and startup confirms the application has started. The documentation warns that incorrect liveness probes can lead to cascading failures, with containers restarted under high load. For an AI service, keep liveness local: is the process responsive? Do not make it depend on the model provider. If liveness calls the provider, a provider slowdown restarts every pod at once. Use readiness for dependencies the instance cannot serve without, such as its configuration and secrets, and a startup probe for self-hosted models that take minutes to load. Managed platforms offer equivalent checks under different names.
Autoscaling. CPU is a poor signal for a service that spends most of its time waiting for a model. Scale request-serving instances on concurrency or latency, and workers on queue depth. KEDA, a Cloud Native Computing Foundation graduated project, scales Kubernetes workloads on events waiting to be processed and can scale to zero. Then add the limit most designs miss: the provider's token quota. Scaling ingestion workers from 5 to 50 does not help if the embedding endpoint allows a fixed rate per minute. It produces throttling errors and retries. Set the maximum instance count from the downstream quota, not from the platform's limit.
Rollback. The Kubernetes Deployment documentation states that a revision is created only when the Pod template changes, and that rolling back restores only the Pod template. Replica counts, and anything held outside the template, stay as they are. For an AI service, that means a prompt stored in a configuration service, a model route in the gateway or a new index version is not rolled back by rolling back the container. Swartberg treats the release as a bundle: image digest, prompt version, route table version, index version and evaluation result, recorded together and reversible together. Part 8 covers canary releases for that bundle.
Indexes and state. Rolling back code is quick. Rolling back a re-embedded index is not, unless you kept the previous index running in parallel. Plan index changes as migrations with a cut-over and a way back, as RAG is a data product describes.
Azure, AWS, Google Cloud and on-premises as patterns
The same patterns appear with each provider under different names. These are dated examples, checked on 18 November 2026, not recommendations.
| Pattern | Azure | AWS | Google Cloud | On-premises |
|---|---|---|---|---|
| Managed container platform | Container Apps | Elastic Container Service (ECS) with Fargate | Cloud Run | A packaged platform on your own cluster |
| Managed Kubernetes | Azure Kubernetes Service | Elastic Kubernetes Service | Google Kubernetes Engine | Self-managed or vendor-supported distribution |
| Self-hosted GPU inference | Serverless GPUs in Container Apps, or GPU node pools | ECS on GPU-capable EC2 instances, or GPU node groups | GPUs on Cloud Run, or GPU node pools | GPU servers you buy, power and cool |
You do not need all four. Multicloud is a consequence of requirements, not a goal, as hybrid and multicloud without architecture theatre argues. Choose the provider per workload with choose the workload before the cloud, then apply the matrix within it.
The South African version
Region availability is where local designs most often change. All three hyperscalers named above operate cloud regions in South Africa, but not every service is offered in every region. When we checked on 18 November 2026, the region list for serverless GPUs in Azure Container Apps and the GPU region list for Cloud Run services did not include a South African region. A team that must keep health information and inference in the country may therefore need dedicated GPU capacity, a different service or an on-premises option for self-hosted models, while hosted model APIs reached through the gateway raise the cross-border question covered in Part 5. Check the current region lists for the exact service before you design around it.
Two other local factors matter. On-premises GPU capacity depends on reliable power and cooling, which adds backup power to the business case. And Kubernetes skills are concentrated in a small number of people in many South African organisations, so a cluster that only one engineer understands is an operational risk, not a platform. This is general information, not legal advice, on the residency question.
Deployment readiness checklist
- Draw the five layers for your service and name who owns each.
- Sort every component into stateless, stateful and ephemeral; put stateful pieces in managed services where they meet requirements.
- Apply the decision path in order, starting with any hard residency rule.
- Build images reproducibly, sign them and deploy by digest.
- Keep liveness checks local; use readiness for required dependencies and a startup probe for slow-loading models.
- Scale on concurrency, latency or queue depth, capped by the downstream token quota.
- Release and roll back the AI bundle together: image, prompt, routes, index and evaluation result.
- Keep the previous index available until a new one has passed evaluation.
- Check region availability for every service you depend on.
- Write down the triggers that would justify Kubernetes, and revisit them on a date.
Scorecard contribution
This part adds evidence to four rows of the Production Readiness Scorecard. States are Swartberg's, illustrative.
| Domain | Evidence from this part | Swartberg state |
|---|---|---|
| Deployment | Reproducible signed images, health checks, quota-capped scaling, bundle rollback | tested |
| Resilience | Provider-independent liveness, parallel index for rollback | hypothesis |
| Operations | Owner per layer, platform decision record with review triggers | tested |
| Economics | Scale-to-zero workers, instance limits set from provider quota | hypothesis |
Previous: Part 6, Secure the whole AI supply chain. Next: Part 8, AgentOps in practice. All parts are on the series page.
How CloudNala can help
CloudNala helps teams choose and build the deployment platform for AI services on evidence. We sort your components by state, apply the decision path against your residency rules and the region services available to you, set health checks, scaling limits and bundle rollback for the AI layer, and write the decision record with the triggers that should reopen it. You leave with a deployment design your team can run with the people it has, and a clear answer on whether Kubernetes has earned its place yet.
Work with CloudNala
CloudNala helps organisations move from technology ambition to practical execution across cloud, AI, data, platform engineering and digital services.
Whether you are exploring AI, modernising your cloud environment, building a public-sector digital service, or turning an idea into a working MVP, we can help you shape the roadmap and deliver the next step.
Book an AI Deployment Architecture Review or write to us at consult@cloudnala.co.za
