Skip to main content
    Back to Blog
    5 min read

    Cloud-Native Architecture for AI Workloads: A Practical Guide

    How to run AI inference on Kubernetes: GPU choices, scheduling, model serving, data layers, observability, cost controls and data residency.

    Cloud Engineeringcloud-nativekubernetesai inferencegpumodel servingmlopsfinopsai architecture
    LinkedIn X

    Key takeaways

    • For most teams, a good AI platform is a normal cloud-native platform with a few changes.
    • Requests go through a gateway to a model server.
    • GPUs are scarce, so you schedule them with care.

    Short answer: For most teams, a good AI platform is a normal cloud-native platform with a few changes. Requests go through a gateway to a model server. GPUs are scarce, so you schedule them with care. Every call is measured for cost and quality. Start with a managed model API, and move to your own GPUs only when volume, privacy or latency makes it worth the work.

    As of 26 October 2026. Product names and prices change often, so check each vendor page before you commit.

    What changes when the workload is AI

    A web service is cheap per request and scales on CPU. An AI service is different in four ways.

    • Hardware is the bottleneck. Inference needs GPUs or other accelerators, and they cost far more than CPU nodes.
    • Requests are slow and uneven. A single LLM answer can take seconds, and its cost depends on the length of the prompt and the reply.
    • Models are large. Loading weights takes time, so scale-from-zero is slow.
    • Quality is not binary. A service can be "up" and still give wrong answers.

    Cloud-native practice still applies. You add GPU scheduling, a model server, and quality and cost checks on top.

    GPU and accelerator options

    You can rent GPUs from the large clouds or from specialist providers. The cloud docs show the range. As of the dates of the pages below, AWS lists P5 instances with NVIDIA H100 GPUs and P5e and P5en instances with H200 GPUs. Google Cloud lists H100, H200, B200, GB200 and GB300 machine types, plus A100, L4 and T4 for smaller jobs. Google also says some of its newest machine types need reserved capacity before you can create them.

    Match the chip to the job:

    • Small and mid-size models, embeddings, rerankers: a cheaper GPU such as an L4 is often enough.
    • Large LLMs: you need memory first. Model size and context length decide how many GPUs a replica needs.
    • Training and fine-tuning: more interconnect bandwidth and memory matter, and you may only need the capacity for a short time.

    Do not pick a GPU because it is the newest. Test your own model on two or three options and compare cost per 1,000 requests at your target latency. This guide did not verify Oracle Cloud or Azure GPU lists, so check those pages directly.

    Scheduling GPUs on Kubernetes

    Kubernetes treats a GPU as a resource that a vendor device plugin exposes, for example nvidia.com/gpu. Per the Kubernetes docs, you request it under limits. If you also set requests, the two values must match. By default a container gets whole GPUs, in whole numbers. Device plugin support has been stable since Kubernetes v1.26.

    Three practices help:

    1. Label and taint GPU nodes. Use node selectors or affinity so only GPU workloads land there. Node Feature Discovery can add the labels for you.
    2. Share a GPU when one model does not fill it. NVIDIA Multi-Instance GPU (MIG) splits a supported GPU into isolated partitions with their own compute and memory.
    3. Look at Dynamic Resource Allocation (DRA). It lets pods request devices through claims and device classes, with filtering rules and device sharing. The Kubernetes docs list DRA as stable since v1.35. One limit they note: the scheduler does not preempt pods to free a DRA device, so a high-priority pod can wait.

    Kubernetes for inference

    Run inference as a Deployment behind a service and gateway, like any other API. Add three things.

    • Autoscaling on the right signal. CPU is a poor signal for a GPU model. Scale on queue depth, in-flight requests or tokens per second. KEDA scales workloads from external event sources and works with the Horizontal Pod Autoscaler. KServe offers request-based autoscaling for generative workloads and scale to zero for idle resources.
    • Warm capacity. Scale to zero saves money but cold starts are slow for big models. Keep a minimum replica count for user-facing paths.
    • Model caching. Store weights on fast local or shared storage so a new pod does not download them again.

    Model serving

    You have three choices.

    OptionGood forWatch for
    Managed model APIs: Amazon Bedrock, Google's Gemini Enterprise Agent Platform (formerly Vertex AI), Microsoft FoundryFast start, no GPU operations, many modelsPer-token cost at high volume, data location, provider limits
    Open-source servers on your cluster: vLLM, KServeControl, open models, private dataYou run upgrades, capacity and on-call
    NVIDIA Dynamo-Triton (formerly Triton Inference Server)Mixed model types such as TensorRT, PyTorch and ONNX on GPU or CPUA broader tool set to learn

    Names have changed. NVIDIA's page calls Dynamo-Triton "formerly NVIDIA Triton Inference Server". Microsoft's docs show Azure AI Foundry became Microsoft Foundry, with an upgrade path for Azure OpenAI resources. Google's docs now title its ML platform pages "Gemini Enterprise Agent Platform", with a feature store, online endpoints and model monitoring inside.

    vLLM is an open-source LLM serving library. Its docs list PagedAttention for memory handling, continuous batching and an OpenAI-compatible API server. KServe, a CNCF incubating project since 29 September 2025, runs both predictive and generative models on Kubernetes and can use vLLM as a backend.

    A practical rule: put a thin gateway in front of every model, hosted or self-run. It handles auth, rate limits, logging and routing, and it lets you swap models without changing applications.

    Data and feature layers

    Most AI systems need data at request time. Plan three layers.

    • Operational and analytical stores. Your source of truth. Keep access rules in one place.
    • Feature store, if you run classic ML. Feast is open source and offers an offline store for training and an online store for low-latency serving, with point-in-time correct training sets. Cloud options exist too: Google lists a feature store in its platform docs. Tecton was a popular choice, but Databricks agreed in August 2025 to buy its assets, so check its current status before you adopt it.
    • Retrieval layer for LLM apps. This is usually a vector index plus keyword search over your documents. Products differ a lot in features and pricing, so test with your own data and your own access rules. Apply the same permissions to retrieved text as to the source documents.

    Observability

    You need four views.

    1. Infrastructure: GPU use, memory, queue depth, pod restarts.
    2. Service: latency, errors, time to first token, tokens per second.
    3. Cost: tokens or GPU-hours per team, feature and customer.
    4. Quality: sampled answers scored against a test set, plus user feedback.

    OpenTelemetry has semantic conventions for generative AI covering spans, metrics, agents and provider pages. Their home has moved to a separate GenAI repository, so link to the current one when you set up tracing. Log prompts and replies only with a clear retention rule, since they can hold personal data.

    Cost controls

    AI cost can grow faster than usage if nobody is watching. These controls are cheap to add.

    • Meter by owner. OpenCost is a vendor-neutral open-source project for measuring and allocating container and cloud costs, with showback and chargeback for Kubernetes.
    • Set budgets and rate limits at the gateway. Cap tokens per user, team and day.
    • Route by difficulty. Send simple tasks to a smaller model.
    • Cache repeat prompts where answers can safely repeat.
    • Right-size GPUs. Use MIG or smaller cards for small models.
    • Compare rent and buy with quotes. Owning hardware only pays off if it stays busy.

    Security and data residency

    The OWASP Top 10 for LLM Applications (2025 version) is a good checklist. It includes prompt injection, sensitive information disclosure, supply chain, data and model poisoning, improper output handling, excessive agency, system prompt leakage, vector and embedding weaknesses, misinformation and unbounded consumption.

    In practice, treat model output as untrusted input, give agents the least access they need, scan model files and images, and keep secrets out of prompts.

    Residency needs a clear answer to one question: where is each request processed? Amazon Bedrock shows why it matters. Its geographic cross-Region inference keeps processing inside a geography such as the US or EU, while global profiles can route to any supported commercial Region. AWS recommends geographic profiles for data residency rules. Whatever provider you use, read where inference, logs and any fine-tuning data are stored.

    Reference architecture

    LayerPurposeExample choices
    Edge and gatewayAuth, rate limits, routing, budgetsAPI gateway, LLM gateway
    ApplicationBusiness logic, prompts, agentsYour services in containers
    Model servingRun modelsManaged APIs, vLLM, KServe, Dynamo-Triton
    ComputeGPUs and CPUsCloud GPU instances, MIG, node pools
    Scheduling and scalingPlace and scale podsDevice plugins, DRA, KEDA, HPA
    DataSource data, features, retrievalWarehouse, Feast, vector index
    ObservabilityHealth, cost, qualityPrometheus, OpenTelemetry, OpenCost
    Security and governanceAccess, audit, residencyIAM, secrets, OWASP checklist, region policy

    FAQ

    Do I need Kubernetes to run AI workloads?

    No. A managed model API needs no cluster. Kubernetes helps when you self-host models, run several of them, or already run your platform on it.

    Is Triton Inference Server still the name?

    NVIDIA now calls it Dynamo-Triton. Its page describes it as formerly Triton Inference Server.

    Is Tecton still independent?

    Databricks agreed in August 2025 to acquire Tecton's assets. Check both vendors for the current product status before choosing it.

    How do I keep data in one region?

    Choose a region or geography profile for inference, storage and logs, and confirm it in the provider's docs. With Bedrock, use a geographic inference profile rather than a global one.

    Can I share one GPU between models?

    Yes, on supported hardware. NVIDIA MIG partitions a GPU into isolated instances, and Kubernetes DRA supports device sharing through claims. Test performance before you rely on it.

    Sources

    1. Kubernetes: Schedule GPUs
    2. Kubernetes: Dynamic Resource Allocation
    3. NVIDIA Multi-Instance GPU user guide
    4. NVIDIA Dynamo-Triton
    5. vLLM documentation
    6. KServe and CNCF project page
    7. KEDA concepts
    8. AWS EC2 P5 instances
    9. Google Cloud GPU machine types
    10. Google Cloud: Gemini Enterprise Agent Platform ML introduction
    11. Microsoft Foundry overview
    12. Amazon Bedrock overview and cross-Region inference
    13. Feast documentation
    14. Fenwick: Databricks acquires the assets of Tecton
    15. OpenTelemetry GenAI semantic conventions
    16. OpenCost
    17. OWASP Top 10 for LLM Applications

    Interested in Enterprise AI Updates?

    Occasional AI architecture, governance and platform engineering updates for CTOs and founders. Prefer a feed reader? RSS feed.

    · Chief Executive Officer, ZigmaNeural

    Vinod Kumar leads ZigmaNeural, advising enterprise leaders on AI strategy, connected products and technology investment decisions.

    Reviewed by Ram Sharma on 26 October 2026

    Found this article useful? Share it:

    LinkedIn X