Fleet and multi-cluster architecture
Separate clusters for concrete reasons
A fleet is an inventory of clusters and their lifecycle, owners and policies. Split clusters when trust, regulation, independent upgrades or availability requirements justify the operational cost. The fictional bookstore has dev, production east and production west. Dev should not have production credentials. Regional production clusters can reduce regional failure exposure if their traffic routing, data replication, identity, DNS and dependencies support it. Two clusters do not automatically provide disaster recovery.
dev: development identity, no production dataprod-east: regional workload clusterprod-west: regional workload cluster, independent recovery checksInventory ownership and shared dependencies
Track each cluster identifier, environment, region, owner, API version, support deadline, node OS, network and storage implementation, trust boundary, Git revision and recovery target. Keep credentials outside the inventory. Distinguish workload data plane from a fleet management plane. A central GitOps controller or registry outage can affect delivery to several clusters even when existing workloads continue serving. Avoid a single broad administrator credential for the fleet. Separate access scopes and record who can approve each change.
Cluster: prod-east | owner: platform-east | region: eastDesired revision: candidate-42 | health: unknownRecovery: requires application and data verificationPromote changes in bounded waves
Build one reviewed immutable artifact; use environment-specific overlays for placement, endpoints and identity. In a simple policy, dev must pass checks before east changes; west changes only after east has verified health and an approval exists. If evidence is missing, hold the next wave. A Git commit is desired state, not proof of sync or application health. ApplicationSet can generate applications for registered target clusters, but review its selectors, project boundaries and change blast radius. Do not automatically target every cluster when onboarding a new one.
dev: verified candidate -> approve easteast: healthy + functional checks -> eligible for west approvalwest: no approval -> HOLDDistinguish fleet tooling from core APIs
Cluster API uses controllers and custom resources to describe cluster lifecycle; a management cluster can operate workload clusters through installed providers. Crossplane offers a framework for platform-specific declarative APIs and external resource management. Argo CD reconciles application configuration from declared sources and ApplicationSet can generate multiple application definitions. These are distinct tools, not native Kubernetes fleet resources. Define ownership so two controllers do not continually overwrite the same resource. Check exact versions, providers, permissions and deletion behavior before installation.
Cluster API: cluster infrastructure lifecycleCrossplane: platform resource APIsArgo CD: application deliveryAll: require installed components and explicit ownershipTest the failure domains and recovery plan
Assume east serves 60 requests per second and west serves 40. If east fails, west needs capacity for all 100 requests per second, plus any required headroom. A verified capacity of 90 is insufficient. Capacity alone does not prove failover: routing, replicated data, recovery time and authorization need tests. Define a stop condition and rollback plan for each promotion wave. Reverting manifests cannot reverse writes to an external database; coordinate recovery with the data owner. The offline lab evaluates simple gates and capacity only.
Normal load: 60 + 40 = 100 requests/sWest tested capacity: 90 requests/s -> HOLD failover readinessWest tested capacity: 120 requests/s -> capacity gate passes; verify other gatesFurther reading
- https://cluster-api.sigs.k8s.io/ — Declarative cluster lifecycle management
- https://cluster-api.sigs.k8s.io/user/concepts — Management clusters, workload clusters and Machines
- https://docs.crossplane.io/latest/whats-crossplane/ — Extensible control plane for platform APIs
- https://argo-cd.readthedocs.io/en/stable/user-guide/application-set/ — ApplicationSet generators and cluster targeting
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Fleet and multi-cluster architecture — knowledge check
Define policy, identity and failure boundaries
What makes regional failover credible?
What should happen if the previous promotion wave has no health evidence?
Which tool is designed for declarative cluster lifecycle management?
What should a fleet inventory avoid storing?
East loses 60 requests/s and west serves 40; west capacity is 90. What is the result?