Simplifying and standardising our cell infrastructure provisioning model
Platform infrastructure team
Here is your cluster.
Provisioning a cell is kept deliberately simple. The platform infrastructure team hands over a working cluster, exactly as a self-managed customer would bring one, and nothing more. One code repository says how a cluster is built. One config repository says which clusters exist.
- A VPC, an EKS cluster, node groups and load balancers
- Upgrades, wave by wave, run by the team that built it
- An outputs package: endpoint, CA certificate, region
- GitLab, or anything that only exists because GitLab runs → Theseus
- Postgres, Redis, NATS → managed services
- Rings, versions and cell values → application delivery
If a self-managed customer would bring it with their cluster, it is in the box. If not, it is another track’s job.
A code repository and a config repository
The whole provisioning model fits in two repositories. Code says how a cluster is built. Config says which clusters exist and which version each one runs.
phaleron-cell/aws 0.2.1cell-outputs-<cell>Code: how a cluster is built
One Terraform module, released as tags. Change it once and every cell can take it.
Config: which clusters exist
One folder per cell: its wave, region and module pin. A new cell is a one-line MR.
And nothing else
Config depends on code, never the reverse. Neither knows GitLab exists.
Step through it
One merge request in, one cluster out. The dimmed last step belongs to the other tracks.
An MR to phaleron-infrastructure-config adds the cell’s folder: its wave, region and the module version it runs. Nothing is hand-built.
The pinned module provisions the VPC, the EKS cluster, its node groups and load balancers, the same way for every cell. This is the platform infrastructure team’s whole job.
The apply writes the cell’s endpoint, CA certificate and region to a private outputs package. That package is the boundary: the cluster is handed over exactly as a self-managed customer would hand one over.
Other tracks take it from here: a phaleron-config pipeline reads the outputs and installs Argo CD, Theseus installs GitLab, and the cell joins its ring. Nothing in this layer knows GitLab exists.
Runbooks
Eight changes to the cluster, each with a step-by-step video.
Provisioning a cell
One MR, one cluster, handed over.
EKS version rollout
Change the module once, roll it out wave by wave.
Rollout failure: a module bug
Caught in wave 0, fixed forward, never reaches wave 1.
Rollout failure: a blocked node drain
Infrastructure finds it; the application owner fixes it.
Maintenance: node image patching
A new node image, through the waves, no module change.
Maintenance: upstream module bump
The plan output is the review, not the green pipeline.
Maintenance: drift
Detect a hand-made change, then revert or adopt it.
Maintenance: stuck state lock
Check who holds the lock, unlock, re-plan.
Videos and sources
To edit or re-export a video, see Editing and re-exporting.