Stage 13, Part 5 of 9, AI/ML Workload Orchestration
Text
PART 5: ARCHITECTURE & STRATEGY
19. End-to-End AI Platform Architecture
text
┌─────────────────────────────────────────────────────────────┐
│ AI PLATFORM ARCHITECTURE │
│ │
│ Layer 1: Admission & Quota │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ Kueue — ClusterQueue, LocalQueue, Cohort │ │
│ └─────────────────────────────────────────────────────┘ │
│ │
│ Layer 2: Gang Scheduling │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ Volcano / KAI Scheduler — PodGroup, Queue │ │
│ └─────────────────────────────────────────────────────┘ │
│ │
│ Layer 3: Inference Engine │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ vLLM / TGI / Triton — PagedAttention, batching │ │
│ └─────────────────────────────────────────────────────┘ │
│ │
│ Layer 4: Autoscaling │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ KEDA — Queue depth, SLO-driven │ │
│ └─────────────────────────────────────────────────────┘ │
│ │
│ Layer 5: Model Caching │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ KServe LocalModelCache, Warm Pools │ │
│ └─────────────────────────────────────────────────────┘ │
│ │
│ Layer 6: Cache-Aware Routing │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ llm-d, Gateway API Inference Extension │ │
│ └─────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
20. Multi-Tenant AI Platform Design
| Tenant Type | Isolation | Tool |
| Internal teams | Namespaces + Kueue queues | Kueue |
| External customers | vCluster + MIG | vCluster |
| Regulated | Kata Containers + MIG | Kata |
| Hostile | Separate clusters | — |
Multi-Tenant Queue Design
yaml
apiVersion: kueue.x-k8s.io/v1beta2
kind: Cohort
metadata:
name: ai-cohort
spec:
resourceGroups:
- coveredResources: ["nvidia.com/gpu"]
flavors:
- name: a100
resources:
- name: nvidia.com/gpu
nominalQuota: 64
21. Compliance & Security for AI Workloads
| Framework | AI Requirement |
| PCI-DSS | Isolated GPU, audit logs |
| HIPAA | Encrypted model/data, audit |
| SOC2 | Change management, monitoring |
| GDPR | Data residency |
| EU AI Act | Model documentation, audit trails |
1:1 copy of the class Google Doc, code in code blocks.