Search

Explore Fieldwork

Writing / Case study

The nodes that passed incidentally

A missing egress registration was masked by the nodes that happened to pass.

A lime path runs across a grid of small dark glass nodes between two bright lime cubes, with faint amber marks on nodes it passes by.
Conceptual illustration of a check that passed on some nodes by coincidence.

A rollout that fails only on some nodes is usually accused of being flaky. This one was deterministic; it just took a topology diagram to see the determinism.

Bringing a new site onto our platform ended in a canary analysis that never really started. The deployment controller reported failure with zero failed health checks, which is a contradiction worth reading twice. Nothing had ever served traffic, so there was nothing to measure. The new pods were stuck in their init phase, behind a small admission gate we run that verifies a workload's egress identity before it is allowed to start. The gate kept rejecting them.

The design behind that gate: cluster egress for tenant workloads is meant to leave through dedicated gateway nodes, so that the source addresses the outside world sees are stable, documented identities rather than whatever node happened to host the pod. Namespaces opt into this through network policy that steers their egress toward the gateways. Registration is per namespace, and the policy admits namespaces by label.

The new site's namespace was labeled correctly, but the label value was not in the policy's admission list. That registration is a manual onboarding step, and it had been missed. So far, an ordinary missing-step story. The instructive part is why it did not fail everywhere. Two of the cluster's worker nodes are also the egress gateways, and their own node addresses are the approved identities. A pod scheduled there NATs out with an address the gate accepts, policy or no policy. The same workload passed on those nodes and failed on every other node, deterministically, forever. Had the dice landed differently, the first deployment would have gone green and the missing registration would have surfaced weeks later, mid-incident, when a reschedule moved the pods.

The fix was to add the namespace to the admission list using the existing tenant pattern, then restart the rollout so the controller reran its analysis. The canary promoted. The initial passes on gateway nodes did not prove the registration was correct.

Two corrections outlived the incident. The onboarding steps that exist only in someone's memory are now written where the next site onboarding will find them, including this one. And the incident itself is the argument for treating incidental passes as a bug in the test, not luck in the system: any control that can be satisfied by accident will, sooner or later, stop being satisfied at the worst time.

What remains open: whether the registration step should move into the deployment automation entirely. It is a cluster-scoped change that today requires a human review boundary, and I have not decided where that boundary belongs.

Share this article

Continue reading

The height attribute that beat the stylesheet ↗

All writing ↗