← All posts

What happens when this part stops?

When a family member can't open a service, a healthy container somewhere isn't much comfort. In Zebra, my Kubernetes cluster, I need to follow the whole request to see which part has stopped helping.

The availability overview starts with how much interruption is acceptable. This is how I work from that expectation towards specific failures. Some responses exist; others still need a design or a test.

Getting a request home

A request usually starts with DNS. My public secondaries can keep answering when the home primary fails, but only within zone-expiry and signature limits. External checks need to confirm valid answers. If I publish a wrong record, healthy secondaries may copy it faithfully; recovering a known-good zone matters too.

From there, the public address at Hetzner and the route home must work. If fibre fails, CHR and the LTE fallback can preserve the client-facing address while changing the transport. A controlled external test should observe useful service and interrupted connections, rather than infer success from routing timers.

That doesn't cover losing the home router, a switch, or CHR itself. Another internet connection won't repair those. I need replacement configuration and access available without the failed component, plus either a rebuild that fits the interruption budget or an independent path. I haven't established redundant replacements for all of them.

Even with packets arriving, an expired TLS certificate or a badly wrong clock can stop secure access or sign-in. Renewal failures, credential expiry, and time synchronisation therefore need monitoring and testing too. I haven't established complete coverage of those checks here.

Keeping something useful behind the address

Once traffic reaches an application, a failed process or worker node is where restarts and spare instances can help. I've tested node loss. I've also had a node fail and run out of capacity on the machines left behind, so replacement pods need more than permission to start.

They also need the control plane to coordinate them. Losing etcd quorum can leave existing workloads running while Kubernetes cannot make progress on replacements. I've restored etcd, but that doesn't establish a recovery time for today's whole setup.

The data introduces another boundary. CloudNativePG can promote an eligible PostgreSQL standby when a primary disappears. A test needs to record acknowledged writes, reconnect clients, and check what survived. An accessible database with missing recent writes isn't the same result as uninterrupted service.

If the application instead loses a TrueNAS volume, more front-end replicas won't make it readable. The response depends on whether connectivity, the storage service, or the underlying data is lost. Repair or restore it, then check application consistency, not only whether the volume mounts.

DNS -> public endpoint -> home route -> application -> data

A spare at one step doesn't replace a missing dependency elsewhere.

When the repair path also fails

A bad update can break several replicas together. Safe change practices need to account for data migrations as well as reverting an image. An isolated restore and application check should precede replacing production with recovered state.

Identity failure can also take away normal administrative access. Vaultwarden's independent login removes some dependencies, but still needs its hosting or a usable client recovery path. A lost provider account or unavailable registry can similarly leave running applications intact while preventing a replacement machine from obtaining its software.

Capacity remains a shared limit throughout. Monitor disk headroom and saturation, bound resource use, and allow for rebuilding. More front ends can overload the database further; safe load tests need useful response times, not just successful status codes.

Room-wide loss, compromise, and my absence cross several of these steps at once. That's why I want recovery access and evidence for each failure, rather than a single reassuring label for the cluster.

← Back to the notebook