KubernetesCI · Cluster BoundariesCluster boundaries
Cluster boundaries — why separate clusters
What you'll learn
- Identify the reasons to draw cluster boundaries
- Distinguish hard from soft cluster boundaries
- Reason about the trade-offs of cluster boundaries
- Apply the operational discipline of defining boundaries before topology
Prerequisites
Verified against Kubernetes 1.34.x · kubeadm 1.34.x · kubectl 1.34.x · etcd 3.6.x · CoreDNS 1.11.x · containerd 1.7.x / 2.x · 2026-08-16
Cluster boundaries partition workloads into separate clusters. The decision to draw a boundary is one of the most consequential in Kubernetes architecture. This lesson walks the reasons for boundaries, hard vs soft boundaries, the trade-offs, and the operational discipline.
Why separate clusters
flowchart TD
A[Cluster boundaries] --> B[Environment]
A --> C[Security]
A --> D[Geography]
A --> E[Failure domain]
A --> F[Compliance]
A --> G[Scale]
The reasons:
- Environment. Production workloads should not share a control plane with dev workloads. A misbehaving dev Pod cannot starve production; a dev cluster failure does not affect production.
- Security. High-security workloads (PCI, HIPAA, classified) often warrant separate clusters with separate credentials, separate access logs, and separate monitoring.
- Geography. Latency to a single region may be unacceptable for global users. Regional clusters place workloads closer to users.
- Failure domain. A regional outage or a control- plane failure takes down every workload in the cluster. Separating critical workloads into different clusters partitions the blast radius.
- Compliance. Some regulations require data residency (data in the EU stays in the EU). Regional cluster boundaries satisfy this.
- Scale. A single cluster handles ~5,000 nodes. Beyond that, multi-cluster scales horizontally.
Hard vs soft boundaries
flowchart LR
A[Hard boundary] --> B["Separate cluster, separate control plane"]
C[Soft boundary] --> D[Namespace within a cluster]
The two boundary types:
- Hard boundary. Separate clusters with separate control planes. Workloads in cluster A cannot reach workloads in cluster B without explicit cross-cluster networking. Hard boundaries provide the strongest isolation at the highest operational cost.
- Soft boundary. Namespaces within a single cluster, with NetworkPolicy, ResourceQuota, RBAC, and PSS enforcing isolation. Soft boundaries provide moderate isolation at low operational cost.
The choice depends on the driver:
| Driver | Boundary type |
|---|---|
| Environment | soft (namespaces) or hard (separate clusters) |
| Security (PCI) | hard (separate cluster, dedicated credentials) |
| Geography | hard (regional clusters) |
| Failure domain | hard (separate clusters, different failure modes) |
| Compliance (data residency) | hard (regional clusters with data residency) |
| Scale | hard (beyond single-cluster limits) |
The trade-offs
flowchart LR
A[Hard boundary] --> B[Strong isolation]
A --> C[High operational cost]
A --> D[Cross-cluster networking required]
E[Soft boundary] --> F[Moderate isolation]
E --> G[Low operational cost]
E --> H[Cross-cluster networking not required]
The trade-offs:
- Hard boundary — strongest isolation, highest operational cost (separate control planes, separate upgrades, separate monitoring).
- Soft boundary — moderate isolation, lowest operational cost.
Hard boundaries are justified only when the driver requires them. A boundary for “team isolation” is usually a soft boundary (namespaces with RBAC). A boundary for “PCI compliance” is a hard boundary (separate cluster with dedicated credentials).
The decision framework
flowchart TD
A[Need a boundary?] --> B{Driver}
B -->|Environment, team| C["Soft boundary: namespace"]
B -->|PCI, HIPAA| D["Hard boundary: separate cluster"]
B -->|Geography| E["Hard boundary: regional cluster"]
B -->|Compliance| F["Hard boundary: data residency"]
B -->|Scale| G["Hard boundary: beyond single cluster"]
C --> H["Cost: low"]
D --> I["Cost: high"]
E --> I
F --> I
G --> I
The framework:
- Identify the driver (environment, security, geography, compliance, scale, failure domain).
- Determine whether the driver requires hard isolation (PCI, geography, compliance) or soft isolation (environment, team).
- Choose the boundary type (cluster or namespace) that satisfies the driver at the lowest cost.
- Document the boundary and the driver in the architecture.
The operational failure modes
Boundaries fail for predictable reasons:
- Boundary without driver. A cluster exists because someone decided “we need multi-cluster,” not because a driver justifies the cost.
- Inconsistent boundaries. Cluster A has restricted PSS; cluster B has baseline. The inconsistency is a compliance gap.
- Missing cross-cluster networking. Hard boundaries without Submariner or service mesh produce islands.
- Boundary drift. A namespace drifts into another team’s resources because RBAC is not enforced.
- Cost underestimation. Each cluster adds control-plane cost; 10 clusters triples the infrastructure bill.
Quiz
Knowledge check · 4 questions
Q1. Which driver usually justifies a hard boundary (separate cluster) over a soft boundary (namespace)?
Q2. A namespace with NetworkPolicy, ResourceQuota, PSS, and RBAC provides the same isolation as a separate cluster for most environment-isolation use cases, at much lower operational cost.
Q3. An organisation deploys a separate cluster per team for 'isolation'. The result is 15 clusters, 15 control planes, and 15 upgrade cycles. The team owners complain about operational burden. Diagnosis and fix?
The organisation has 15 clusters, one per team. Each cluster has its own upgrade, monitoring, RBAC. The team owners want isolation but the operational burden is unsustainable. The actual driver was 'team isolation' which can be achieved with namespaces.
Q4. Name three cluster boundary drivers and the boundary type (hard or soft) that matches each.
Passing score: 75%. Answers are checked in this browser.
Production discipline
Cluster boundaries in production rest on five non-negotiable elements:
- Define boundaries before topology. Identify the driver before choosing the cluster count.
- Match boundary type to driver. Soft for environment and team; hard for compliance, geography, and scale.
- Document the boundaries. The architecture diagram must show every boundary, the driver, and the type (hard or soft).
- Enforce consistent policies across boundaries. PSS, NetworkPolicy, RBAC must be consistent across clusters of the same type.
- Review boundaries quarterly. Boundary decisions drift; the review catches the drift.
Cluster boundaries are architecture decisions. The discipline is to make the decisions deliberately, based on drivers, and to review them regularly.