Stage 13, Part 5 of 9 · p. 114, AI/ML Workload Orchestration

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 TypeIsolationTool
Internal teamsNamespaces + Kueue queuesKueue
External customersvCluster + MIGvCluster
RegulatedKata Containers + MIGKata
HostileSeparate 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

FrameworkAI Requirement
PCI-DSSIsolated GPU, audit logs
HIPAAEncrypted model/data, audit
SOC2Change management, monitoring
GDPRData residency
EU AI ActModel documentation, audit trails

1:1 copy of the class Google Doc, code in code blocks.