Stage 5, Part 5 of 9, Scheduling Deep Dive

Text

PART 5: ARCHITECTURE & STRATEGY

24. Multi-Tenant Scheduling Strategy

Tenant TypeIsolation Strategy
Internal teamsNamespaces + priorities + quotas
External customersSeparate node pools + taints
Hostile tenantsSeparate clusters
GPU tenantsDedicated GPU node pools + MIG

Tenant Isolation via Taints

yaml
# Tenant A nodes
kubectl taint nodes tenant-a-node-1 tenant=a:NoSchedule

# Tenant A Pods
spec:
  tolerations:
  - key: tenant
    operator: Equal
    value: a
    effect: NoSchedule
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: tenant
            operator: In
            values: [a]

25. GPU and Specialized Hardware Scheduling

Covered in depth in Stage 12 (GPU Orchestration).

Key patterns:


26. Compliance & Security for Scheduling

FrameworkScheduling Requirement
PCI-DSSNetwork segmentation, dedicated nodes for cardholder data
HIPAAIsolated compute for PHI workloads
GDPRData residency (EU-only nodes)
FedRAMPDedicated hardware for controlled data

Data residency example:

yaml
spec:
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchExpressions:
          - key: topology.kubernetes.io/region
            operator: In
            values: [eu-west-1]              # Only EU nodes

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