Lesson 08 of 16 · Edge, isolation and cost
Dedicated and regulated cells
Serve customers who need isolation (very large tenants, regulated industries, government, data residency) from dedicated cells built from exactly the same code as shared ones. Express the differences as parameters and labels, keep the compliance boundary tight, and stop the environments drifting apart.
Who needs a dedicated cell
- Very large tenants whose load would dominate a shared cell.
- Regulated customers (financial services, healthcare, public sector) whose contracts or regulations require isolation or specific controls.
- Government customers needing authorised environments, often in dedicated government cloud regions.
- Data residency: data must stay in a country or region.
- Customers paying for isolation or their own encryption keys.
Some pupils need a quiet room for exams. The quiet room has the same desks, the same exam paper and the same rules as the hall, plus a few extra ones (no phones at all, an extra invigilator). It isn't a different school.
Same code, different parameters
The biggest risk is that "special" environments become different platforms: hand-made changes, older versions, their own scripts, eventually unable to receive updates. Prevent it by design:
- One codebase and pipeline for infrastructure (Terraform modules / Crossplane), add-ons and applications.
- Differences live in parameters (cell size, region, instance types, FIPS-enabled images and endpoints, stricter policy sets) and in cluster labels that GitOps generators use to choose what to deploy.
- Policies by label: an ApplicationSet installs the regulated policy bundle only on clusters labelled
compliance: regulated. - Rollout order by label: regulated cells in the last ring, with the longest soak and, where required, an approval step.
# deploy a stricter policy bundle only where it belongs
generators:
- clusters:
selector:
matchLabels:
fleet.example.io/compliance: regulated
A tight boundary
For regulated environments, define the boundary precisely and keep everything inside it:
- dedicated cloud accounts or subscriptions (and often dedicated regions);
- dedicated clusters, databases, key management, logging and monitoring stores;
- CI runners and registries inside the boundary, or a one-way, verified promotion of signed artifacts into it;
- access limited to approved staff, through just-in-time elevation, fully audited.
Shared tooling that reaches into the boundary (a commercial CI runner deploying into it, a shared log store) pulls that tooling into scope as well.
Keep them from drifting
- No manual changes: everything through Git; break-glass changes are written back to Git.
- Drift detection: compare rendered manifests and add-on versions across cells generated from the same source; any difference not explained by parameters is an alert.
- Same release train: regulated cells receive the same versions, just later; track the version lag as a metric.
- Same tests: the end-to-end suite runs against a regulated-configured staging cell too.
Residency and keys
- Placement rules (lesson 2) put tenants in cells of their required region; failover stays inside the region.
- Per-tenant encryption keys (customer-managed where required) live in the cell's region and key management service.
- Backups, logs and support tooling must respect residency as well: they are data too.
Try it
In a two-cluster lab, label one cluster compliance: regulated. Create a second policy bundle (for example requiring readOnlyRootFilesystem) and an ApplicationSet that installs it only on regulated clusters. Deploy the same service to both clusters and confirm it passes on both, which shows the golden path already meets the stricter bundle.
Recap
- Dedicated and regulated cells are built from the same code; differences are parameters and labels.
- Keep the compliance boundary tight: dedicated accounts, data stores, tooling and access.
- Prevent drift with Git-only changes, drift detection, one release train (regulated last) and shared tests.
This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.