AI guide
# Scalable Kubernetes Infrastructure for AI Platforms
## 【One-Line Pitch】
A practical guide for enterprises struggling to move AI proofs-of-concept into production, showing how Kubernetes-native MLOps practices can make model training repeatable, deployment scalable, and AI systems trustworthy. Ideal for platform engineers, MLOps practitioners, and technical leaders building AI infrastructure on Kubernetes.
## 【Book Arc】
- **Opening (~0%–9%)**: Establishes the core problem—most enterprise AI POCs never reach production—and introduces MLOps as the discipline to bridge this gap. Defines the four fundamentals: training models experimentally, making creation repeatable, operating in production, and ensuring responsible AI.
- **Early (~9%–24%)**: Explains why Kubernetes is the ideal foundation for MLOps, covering declarative configuration, GitOps tooling, hardware abstraction, and fine-grained scaling. Introduces the AI development lifecycle from project initiation through production service.
- **Early–Middle (~24%–39%)**: Dives into model customization techniques, contrasting RAG (retrieval-augmented generation) with fine-tuning, and introduces parameter-efficient methods like PEFT and LoRA. Surveys Kubernetes-native training tools and their trade-offs.
- **Middle (~39%–48%)**: Focuses on managing compute resources for training, comparing Kueue and Volcano for job queuing, resource quotas, and priority management. Discusses the full model lifecycle, including periodic retraining strategies.
- **Middle–Late (~48%–end)**: Addresses model versioning and dataset tracking as critical production workflows, emphasizing the need for robust systems to manage the iterative nature of model development and deployment.
## 【Key Takeaways】
- **MLOps bridges the POC-to-production gap** (Opening): The vast majority of enterprise AI projects fail to reach production; MLOps applies DevOps principles to AI models, bringing development and operations together to improve success rates and ROI.
- **Kubernetes is a natural MLOps platform** (Early): Its declarative nature enables repeatable model building, GitOps tooling simplifies version control of training artifacts, and hardware abstraction lets data scientists focus on models rather than infrastructure.
- **Model customization has three fundamental approaches** (Early): Prompt engineering/RAG leaves the model unchanged, mixture-of-agents combines models, and fine-tuning retrains on curated data—each with different cost and complexity trade-offs.
- **RAG extends model knowledge at query time** (Early): By retrieving relevant context from a vector database and passing it to the model, RAG overcomes the limitation that pretrained models only "know" their training data.
- **Fine-tuning requires compute and data curation** (Early): While more complex than RAG, fine-tuning can avoid retrieval complexities; PEFT and LoRA reduce costs by training only a subset of weights and biases.
- **Training tools should abstract Kubernetes away** (Early): The ideal tool integrates with existing frameworks (PyTorch, TensorFlow), supports desired algorithms, provides hardware optimizer access, and hides Kubernetes complexity from data scientists.
- **Resource management is critical for cost control** (Middle): Kueue and Volcano provide job queuing, resource quotas, priority-based preemption, and auditability—essential for managing expensive GPU training infrastructure.
- **Model versioning is still immature but essential** (Middle): Unlike traditional software version control, model version tracking is in its infancy, yet it's crucial for reproducing experiments, auditing models, and ensuring responsible AI deployment.
## 【Reading Tips】
- **Skim the opening chapters** (~0%–9%) if you're already familiar with MLOps concepts; the value here is the Kubernetes-centric framing, not the DevOps primer.
- **Deep-read the model customization section** (~24%–33%) for a clear comparison of RAG versus fine-tuning—this is the most actionable content for practitioners choosing an approach.
- **Pay close attention to the Kueue vs. Volcano comparison** (~39%–42%): The trade-offs between lightweight delegation and holistic integration directly impact your infrastructure architecture decisions.
- **The lifecycle diagrams are worth studying** (~15% and ~48%): They clarify how the iterative model lifecycle differs from the development cycle and where retraining loops occur.
- **Note that excerpts don't cover the full production serving and monitoring chapters**—if those are your primary interest, you may need supplementary resources.
## 【Coverage Limits】
This guide is based on excerpts covering roughly the first half of the book (through ~52%). The later chapters on production serving, monitoring, and responsible AI are referenced but not covered in detail here.
##
Passage locations
Excerpt 1
r Copyeditor: nSight, Inc. Proofreader: O’Reilly Media, Inc. Interior Designer: David Futato Cover Designer: Susan Brown Illustrator: Kate Dullea February 20...
View in text
Excerpt 2
erated upon to improve its performance and add new features. Figure 1-1. This flowchart demonstrates the iterative nature of the AI development lifecycle Giv...
View in text
Excerpt 3
s critically important to the performance of the RAG system. If no relevant contextual data is retrieved by the system, the model will lack the knowledge nee...
View in text
Excerpt 4
el, including fine-tuning, a special case of model training. Once you’ve fine-tuned or trained your model for the first time, you might be tempted to think t...
View in text