artenis.alija
ende
Kubernetes · AWS EKS · MLOps9 min read18 January 2025

Kubernetes for ML Pipelines: Six Months on

Running batch ML workloads on EKS taught me things the documentation won't. Node pools, spot interruptions, GPU scheduling — the hard lessons.

Kubernetes is not the obvious choice for ML pipelines — managed solutions like SageMaker or Vertex AI take care of a lot of infrastructure complexity. But when you need full control over your stack, want to avoid vendor lock-in, and have workloads that span training, inference, and data prep, EKS with a well-configured node pool setup is hard to beat.

The critical decision is GPU node pool architecture. We ended up with three pools: a small on-demand pool for interactive inference (always warm, expensive), a spot pool for batch training (90% cheaper, needs interruption handling), and a CPU pool for preprocessing. Spot interruption handling with node affinity rules and graceful checkpointing was the engineering challenge that took longest.

Autoscaling takes time to tune. Cluster Autoscaler works well for CPU workloads; for GPU nodes, the scale-up latency (3–5 minutes for a g4dn instance to join) means you need to keep a warm floor. We used Karpenter in the end — its bin-packing and faster node provisioning made a meaningful difference.

If I were starting over, I'd containerise more aggressively from day one. Debugging Kubernetes issues where half your config lives in the container and half lives in Helm charts is a nightmare. Single-source-of-truth infrastructure, ideally Terraform managing EKS config and Helm charts from the same repo, is the sane path.

Citation

Artenis Alija. "Kubernetes for ML Pipelines: Six Months on EKS." 2025. https://artenisalija.com/blog/kubernetes-ml-pipelines/

https://artenisalija.com/blog/kubernetes-ml-pipelines/

More posts

United Arab Emirates · AI automation services7 Sept 2026

AI Automation Consultant in United Arab Emirates

Plan AI automation services in United Arab Emirates with practical use cases, architecture, compliance, KPIs, costs, and a safe 90-day remote pilot with.

United Arab Emirates · dashboard development and business intelligence7 Sept 2026

Power BI Dashboard Developer in United Arab Emirates

Plan dashboard development and business intelligence in United Arab Emirates with practical use cases, architecture, compliance, KPIs, costs, and a safe.

United Arab Emirates · AI-assisted animation and video production7 Sept 2026

AI Video Production in United Arab Emirates

Plan AI-assisted animation and video production in United Arab Emirates with practical use cases, architecture, compliance, KPIs, costs, and a safe 90-day.

United Arab Emirates · n8n workflow automation7 Sept 2026

n8n Automation Consultant in United Arab Emirates

Plan n8n workflow automation in United Arab Emirates with practical use cases, architecture, compliance, KPIs, costs, and a safe 90-day remote pilot with.

United Arab Emirates · AI agents, RAG, and data pipelines7 Sept 2026

AI Agent Development in United Arab Emirates

Plan AI agents, RAG, and data pipelines in United Arab Emirates with practical use cases, architecture, compliance, KPIs, costs, and a safe 90-day remote.

United Arab Emirates · WhatsApp AI chatbot development7 Sept 2026

WhatsApp AI Chatbot Developer in United Arab Emirates

Plan WhatsApp AI chatbot development in United Arab Emirates with practical use cases, architecture, compliance, KPIs, costs, and a safe 90-day remote pilot.