Kubernetes for AI Workloads

Kubernetes is where we have spent most of the last five years, and it is the part of an AI platform that quietly decides whether the project survives.

Platform engineering is the job

Most AI platforms fail on the platform, not the model. A cluster nobody can upgrade, GPU capacity nobody can share, and no audit trail for who changed what — those are the problems you inherit at month three, after the demo worked.

Production clusters, built to be operated

  • Managed or on-prem: AKS and GKE by default, on-prem where data residency demands it, k3s at the edge where a full cluster is overkill.
  • Control plane and node pools: HA configuration, node-pool design per workload class, upgrade strategy with a rollback path, and capacity that matches actual demand rather than a peak nobody hits.
  • Security: RBAC designed around teams not individuals, network policies, Pod Security Standards, secrets management, and image policy.
  • Policy as code: OPA/Gatekeeper or Kyverno so the guardrails are enforced by the cluster, not documented in a wiki.

GPU and accelerator scheduling

This is the layer most platform teams have not built before, and it is where AI clusters earn or waste their money.

  • Node pools per accelerator class, with device plugins and taints so workloads land on the right hardware.
  • MIG partitioning to split a card between tenants instead of handing one team a whole GPU.
  • Priority classes so interactive inference beats batch, and batch still gets done overnight.
  • Quotas and bin-packing that keep utilisation up and stop one namespace from fragmenting the pool.
  • Autoscaling on the right signal: queue depth or time-to-first-token with KEDA/HPA — CPU is never the bottleneck for inference.

GitOps and the delivery path

  • ArgoCD app-of-apps, environment promotion, drift detection and one-click rollback.
  • Infrastructure, Helm charts, model configuration and prompts in the same repository and the same review process.
  • Canary and blue-green deployments for models, not just for services.
  • Reproducible clusters: a new environment is a directory, not a weekend.

AI workloads in the same cluster

  • LLM serving: vLLM, Ollama or llama.cpp deployed as a workload with model caching, readiness probes that reflect real model load, and rolling model upgrades.
  • Agents: DeepSeek Harness and Open WebUI with their own service accounts, resource limits, approval gates and audit logs.
  • Retrieval and evaluation: Qdrant for retrieval; eval jobs that run in-cluster against the same image as production.
  • Observability: LGTM (Loki, Grafana, Tempo, Mimir) for latency, errors and memory pressure, GPU metrics from the cluster, and token spend per namespace so cost is attributable.

Platform as a product

Internal developer platforms where they pay off: Backstage or a custom portal, golden paths for deploying a model or a service, self-service namespaces, and the feedback loop that keeps developers from routing around the platform.

Want the cluster to stop being the problem?

Bring the architecture, the workload, or the thing that keeps falling over. Talk to an engineer.