Multi‑Cluster & Federation
Why Federation
Picture a global airline. One airport isn’t enough then you need multiple airports coordinated worldwide. Kubernetes clusters face the same challenge: enterprises often run workloads across regions, clouds, or even continents.
Multi‑Cluster and Federation were born as the global airline network of Kubernetes, enabling workloads to span multiple clusters with resilience, scale, and unified management.
Multi‑Cluster
Independent Airports
- Definition: Running workloads across multiple Kubernetes clusters.
- Benefits:
- High availability (if one cluster fails, another takes over).
- Geo‑distribution (closer to users worldwide).
- Hybrid cloud (mix of on‑prem and cloud).
Analogy: Multi‑cluster is like airports in different cities, each serving local passengers but part of a larger network.
Federation
The Airline Headquarters
- Definition: A control plane that manages multiple clusters as one.
- Capabilities:
- Unified deployment across clusters.
- Centralized policy management.
- Cross‑cluster service discovery.
Analogy: Federation is like the airline headquarters, coordinating flights across all airports.
Global Context
- Enterprises: Use federation for disaster recovery, compliance, and global scaling.
- Cloud Providers: Offer multi‑cluster management tools (e.g. Anthos, Azure Arc, AWS EKS Anywhere).
- Community: Federation (KubeFed) is evolving, enabling cross‑cluster orchestration.
Hands‑On Exercise
- Reflect: How does federation act as the airline headquarters, ensuring workloads are deployed consistently across clusters?
Deploy a federated resource:
apiVersion: types.kubefed.io/v1beta1
kind: FederatedDeployment
metadata:
name: web
spec:
template:
metadata:
labels:
app: web
spec:
replicas: 3
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: nginx
image: nginx
Join clusters:
kubefedctl join cluster1 --cluster-context=cluster1-context --host-cluster-context=host-context
kubefedctl join cluster2 --cluster-context=cluster2-context --host-cluster-context=host-context
Deploy Kubernetes Federation (KubeFed):
kubectl apply -f https://github.com/kubernetes-sigs/kubefed/releases/download/v0.9.2/kubefed.yaml
The Hacker’s Notebook
- Multi‑cluster is resilience for multiple airports serving passengers.
- Federation is coordination headquarter for managing the network.
- Lesson for engineers: Don’t limit workloads to one cluster and scale globally.
- Hacker’s mindset: Treat federation as your global control tower. With it, you can orchestrate Kubernetes at planetary scale.

Updated on Dec 30, 2025