Finding Single Points of Failure in Kubernetes with Graph Theory

Published 2026-11-29 · Updated

Find Kubernetes single points of failure two ways: check capacity (single replica, no HPA, no PodDisruptionBudget) and run an articulation-point search on the dependency graph to find resources whose removal disconnects other resources.

A single point of failure (SPOF) is something whose loss takes a service down with no fallback. In Kubernetes there are two distinct kinds, and you need different checks for each.

Kind 1: capacity SPOFs

These are visible on the workload itself:

  • replicas: 1 on something that serves traffic
  • no HorizontalPodAutoscaler
  • no PodDisruptionBudget, so a node drain can remove the only pod
kubectl get deploy -A -o json | jq -r '.items[]
  | select(.spec.replicas == 1)
  | "\(.metadata.namespace)/\(.metadata.name)"'
kubectl get pdb -A

This catches the obvious cases, but it only looks at one object at a time.

Kind 2: structural SPOFs

Some SPOFs only appear when you look at the relationships. A ConfigMap mounted by ten workloads, a single node hosting the only copy of a set of pods, or one Service that every other component calls are all structural.

Graph theory has a name for this: an articulation point is a vertex whose removal increases the number of connected components. Tarjan’s depth-first algorithm finds all of them in linear time, O(V + E).

Build a graph where resources are vertices and dependencies are edges, run the algorithm, and the articulation points are your structural SPOF candidates.

Avoiding false positives

Raw graph output needs filtering:

  • DaemonSet pods will often be articulation points on their node. They are per-node by design, so exclude them.
  • ConfigMaps and similar have no replica concept, so do not apply capacity rules to them.
  • Services should be judged by the workload they select, not by the Service object.

Doing this in Kubilitics

Kubilitics runs both checks continuously, attaches the reason to each finding (articulation point, single replica, missing PDB or HPA) and suggests remediation. See SPOF detection.

Frequently asked questions

Is a one-replica Deployment always a SPOF?

It is a capacity SPOF if its Service has no other backend. If the workload is intentionally single-instance and tolerates downtime, flag it as accepted rather than ignoring the finding.

Why exclude DaemonSets?

DaemonSet pods run once per node by design. Losing one affects one node, not the whole service, so reporting them as SPOFs is noise.