Stage 14, Part 1 of 9 · p. 119, Multi-Cluster & Platform Engineering
PART 1: CORE THEORY
1. The Multi-Cluster Imperative
Single clusters don't scale indefinitely. Organizations adopt multi-cluster architectures for isolation, resilience, cost optimization, and regulatory compliance. But multi-cluster introduces complexity that single clusters never had.
Why Organizations Go Multi-Cluster
Driver
Description
Isolation
Separate prod/staging/dev, separate teams, separate customers
Resilience
Survive zone, region, or provider failures
Compliance
Data residency (EU data stays in EU)
Scale
Beyond 1,000–5,000 nodes per cluster
Cost
Optimize by region or provider
Acquisition
Integrating acquired companies with their clusters
Platform Engineering is the discipline of building internal developer platforms (IDPs) that make multi-cluster Kubernetes manageable. It treats the platform as a product, with developers as customers.
Traditional Ops
Platform Engineering
Tickets for infrastructure
Self-service
Manual provisioning
Golden paths
Per-team tooling
Standardized platform
Reactive
Proactive
2. The Ownership Levels Framework
Multi-cluster and multi-tenancy decisions can be organized into four ownership levels. Understanding where you sit determines which tools to use.
The Four Levels
Level
What You Own
Tools
Level 1: Multi-Cluster
Cluster lifecycle, provisioning
Cluster API, Terraform
Level 2: Multi-Tenancy
Tenant isolation within a cluster
vCluster, Capsule, namespaces
Level 3: Platform Engineering
Developer experience, self-service
Backstage, Crossplane
Level 4: Governance
Policy, compliance, cost
Kyverno, OPA, Kubecost
Why the Framework Matters
Each level has distinct concerns and distinct tools. Confusing them leads to over-engineering (using vCluster when namespaces would suffice) or under-engineering (using namespaces when hard isolation is required).
3. vCluster
vCluster creates virtual Kubernetes clusters inside a host cluster. Each vCluster has its own API server, controller manager, and optional scheduler, but shares the host's worker nodes.
How vCluster Works
text
┌─────────────────────────────────────────────────────────────┐
│ HOST CLUSTER │
│ │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ vCluster A (Namespace: vcluster-a) │ │
│ │ • Virtual API server (synced to host) │ │
│ │ • Virtual controller manager │ │
│ │ • Virtual scheduler │ │
│ │ • Pods run as host pods │ │
│ └─────────────────────────────────────────────────────┘ │
│ │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ vCluster B (Namespace: vcluster-b) │ │
│ │ • Virtual API server │ │
│ │ • Virtual controller manager │ │
│ └─────────────────────────────────────────────────────┘ │
│ │
│ Both share the same host worker nodes. │
└─────────────────────────────────────────────────────────────┘
When to Use vCluster
Scenario
vCluster?
Development environments
✅ Yes
CI/CD pipelines
✅ Yes
Multi-team SaaS platforms
✅ Yes
Strong tenant isolation
✅ Yes
Simple team isolation
❌ Use namespaces
Production multi-region
❌ Use separate clusters
vCluster Benefits
Benefit
Description
Fast
Create virtual clusters in seconds
Cheap
No additional nodes
Isolated
Each vCluster has own API server
Self-service
Developers manage their own cluster
Version-skew
Different vCluster versions on same host
vCluster Limitations
Limitation
Impact
No node isolation
Pods run on shared nodes
CRD conflicts
Same CRDs can't be installed twice
Host cluster dependency
vCluster fails if host fails
Networking
Cross-vCluster requires configuration
4. Capsule
Capsule implements Namespace-as-a-Service multi-tenancy. It allows multiple tenants to share a single cluster without giving them cluster-level access.
How Capsule Works
Capsule introduces two CRDs:
CRD
Purpose
Tenant
A tenant with assigned users, groups, and namespaces
Karmada (Kubernetes Armada) is a CNCF-graduated project for multi-cluster, multi-cloud Kubernetes orchestration.
Karmada Architecture
Component
Purpose
Karmada Control Plane
Central API, scheduler, controllers
Member Clusters
Workload clusters (push or pull mode)
ResourceBinding
Workload distribution decisions
PropagationPolicy
Where workloads should run
Karmada Use Cases
Use Case
Description
Hybrid cloud
Run workloads across AWS, GCP, on-prem
Multi-region
Distribute workloads globally
AI/ML training
Schedule across GPU clusters
Disaster recovery
Active-active multi-cluster
Karmada v1.19 (2026)
The v1.19 release advances multi-component scheduling for distributed AI training jobs and promotes priority-based scheduling to Beta, enabled by default.
1:1 copy of the class Google Doc, code in code blocks.