Scrivio Interview library
DebuggingIntermediate6 min read · updated 13 November 2026

At 02:10 a node upgrade restarted pods across a Kubernetes cluster. A payments API with three replicas spread across zones went completely down for 25 minutes: new pods crash-looped with errors fetching configuration from the single-instance config server, which had been on a drained node.

Explain how three replicas still failed together, and what you would change.

The replicas were redundant, but they all depended on one config server at startup. The node upgrade drained the node running that single config server and restarted the API pods; once the old pods stopped, no new pod could fetch its configuration, so all three crash-looped together. The fixes are to run the config server as several replicas across zones with a PodDisruptionBudget, remove the hard startup dependency with ConfigMaps or a cached last-known configuration, protect the API with its own budget and spread constraints, and map and test dependencies.

Why this question is asked

Three replicas across zones look like solid redundancy, and that is what makes this incident instructive. Redundancy only protects us if the copies fail independently, and here all three shared a dependency nobody counted. Interviewers ask this to see whether we can trace a correlated failure back to its common cause, and whether we know the Kubernetes tools that control how maintenance removes pods. In this answer, we will reconstruct the incident step by step, name the hidden single point of failure, and then go through the changes: a redundant config server, no hard startup dependency, disruption budgets and spread constraints for the API, and a habit of mapping and testing dependencies.

1Reconstructing the Incident

At 02:10 the node upgrade began draining nodes one after another. Draining evicts every pod on a node so the node can be upgraded. The single config server pod happened to run on one of the first drained nodes; it was evicted, and its replacement could not start or was not yet ready. Meanwhile the drains also reached the API pods. Each evicted API pod was replaced by a new one, and each new one tried to fetch its configuration at startup from a config server that was not there.

Spring Cloud Config clients with fail-fast enabled stop the application when the server cannot be reached; without it, the app may start with missing properties and fail later. Here the new pods crashed, Kubernetes restarted them with growing back-off, and they crash-looped. Once the last old API pod was evicted, no healthy pod remained, and the API was down until the config server came back and the back-off timers let the pods start, 25 minutes in total.

Step throughHow three replicas failed together
Node upgradeConfig serverOld API podsNew API pods
drain node: evict the only config server
drain nodes: evict API pods one by one
fetch configuration at startup
unreachable
fail fast, crash, back-off, retry
last old pod evicted: no healthy replica left
retry after the config server returns
configuration, pods ready after 25 minutes

8 messages in order. Play them, or step through them one at a time.

2Why Redundancy Did Not Help

The three API replicas protected against one pod or one zone failing at runtime, because a running pod already had its configuration in memory. They did not protect against the config server failing at startup, because every new replica needed it. Redundancy fails when copies share a dependency, and a startup dependency is the easiest to miss, because it does not matter until pods restart, and maintenance restarts many pods at once.

So the config server was a hidden single point of failure, and the node upgrade was a correlated event that removed it at the worst moment.

3Fix 1: Make the Config Server Redundant

Run the config server with at least two or three replicas, spread across nodes and zones with topology spread constraints, behind a Kubernetes Service. Add a PodDisruptionBudget so voluntary disruptions, such as drains, never take all of them at once. Config servers that read from Git can also cache the repository locally, so they keep serving if Git itself is slow.

YAML
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: config-server
spec:
minAvailable: 2 # a drain waits until another replica is ready
selector:
matchLabels:
app: config-server

Notice that a PodDisruptionBudget only governs voluntary disruptions through the eviction API, such as drains. It does not protect against a node crash, which is why spreading replicas across zones matters too.

4Fix 2: Remove the Hard Startup Dependency

Even a redundant config server can fail, so the better fix is that a missing config server should not stop a pod from starting. One way is to deliver configuration with the deployment: Kubernetes ConfigMaps and Secrets mounted into the pod or read by Spring Cloud Kubernetes, so the configuration arrives with the pod itself. Another is to keep sensible defaults in the image, so the service can start and fetch overrides later.

If we keep Spring Cloud Config, the client can retry with back-off for a bounded time and then start from a cached last-known configuration stored on a volume or baked into the image at build time, raising an alert that it is running on cached settings. A payments API that starts with yesterday's configuration is far better than one that does not start at all.

5Fix 3: Protect the API Itself

The API also needs its own protection. A PodDisruptionBudget with minAvailable: 2 makes a drain wait until a replacement API pod is ready before evicting the next one, so a failing startup stalls the upgrade instead of taking down the service. Topology spread constraints keep replicas on different nodes and zones, so one drain never holds more than one of them.

Readiness probes must reflect real readiness, so a new pod is only counted as available once it can serve. Together these turn a correlated outage into a stuck node upgrade that an operator can investigate during the night.

What each change protects against
ChangeProtects against
Config server replicas plus PDBmaintenance taking the only config server
ConfigMaps or cached configurationany config server outage at startup
API PDB minAvailable: 2drains evicting pods faster than replacements start
Topology spread constraintsseveral replicas on one drained node or zone
Dependency map and game daysthe next hidden shared dependency

6Map and Test Dependencies

Finally, the lesson is broader than one config server. For each critical service, list its startup dependencies (configuration, secrets, service discovery, database migrations, license or feature-flag services) and its runtime dependencies, and ask for each one what happens if it is missing. Then test it: in a staging game day, kill each dependency and restart the service, and watch whether it starts. Dependencies found this way are much cheaper to fix than in a 2 a.m. incident.

7Follow-up questions

Which other services would you expect to share this hidden dependency?

Every service that uses the same config server, which is likely most Spring Boot services on the platform. They would all have failed to restart during the same window; the payments API was simply the one people noticed. I would also check services sharing other startup dependencies, such as a single secrets manager endpoint, a service registry like Eureka, a feature-flag service, or a database migration step that runs at startup.

Is fail-fast a mistake, then?

Not by itself: starting with missing configuration can be worse, for example connecting to the wrong database. The mistake was making the only source of configuration a single fragile service. With configuration delivered with the deployment, or a cached last-known copy, fail-fast only triggers in truly broken situations.

Why did recovery take 25 minutes instead of a few seconds?

Crash-looping pods are restarted with exponential back-off, up to five minutes between attempts, and the config server's replacement also had to be scheduled and become ready. Together that stretched recovery long after the root cause was gone.

8Conclusion

In this answer, we saw that three API replicas failed together because they shared a single config server that every new pod needed at startup, and a node upgrade removed both the config server and the old pods. We fix it with a redundant config server under a PodDisruptionBudget, by removing the hard startup dependency through ConfigMaps or cached configuration, by protecting the API with its own budget and spread constraints, and by mapping and testing dependencies in game days.

What to say in the interviewAbout 80 seconds aloud

Open with

The three replicas were redundant against each other but not against their shared dependency. Every API pod fetched its configuration from a single config server at startup. The node upgrade drained the node with that config server, and also evicted the API pods one by one.

Then, if they want more

Running pods were fine because they already had their configuration, but each replacement pod could not reach the config server, failed fast and crash-looped. When the last old pod went, the service was down until the config server came back and the back-off timers let pods start, about 25 minutes. I would fix it at several levels.

Run the config server with several replicas across nodes and zones and a PodDisruptionBudget, so drains cannot remove all of them. More importantly, remove the hard startup dependency: deliver configuration with the deployment through ConfigMaps and Secrets, or let pods start from a cached last-known configuration and alert.

Protect the API with its own PodDisruptionBudget and topology spread constraints, so a drain waits for a ready replacement. And I would map startup and runtime dependencies for critical services and kill each one in a staging game day.

About this answer

Last updated
13 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "Explain how three replicas still failed together, and what you would change.": https://scrivio-interview-library.netlify.app/architecture/sd-fundamentals/7227dbcf98/