NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mutiny! How does Kubernetes fail, and what can we do about it?

Marco Barletta, Marcello Cinque, Catello Di Martino, Zbigniew T. Kalbarczyk, Ravishankar K. Iyer · DOI

Abstract

Kubernetes (K8s) has become the de facto standard for container orchestration, yet its architectural reliance on a centralized data store (Etcd) introduces a critical single point of failure. This paper presents Mutiny, a novel fault-injection framework that targets the communication between the K8s control plane and its state store. By analyzing 81 real-world failure reports and conducting over 9,000 injection experiments, the authors demonstrate that minor corruptions in state data—specifically labels and selectors—account for 51% of critical system failures. These faults often propagate silently, leading to resource exhaustion and cluster-wide outages.

Introduction

While Kubernetes is praised for its scalability and "self-healing" capabilities, its resiliency is frequently overestimated. The system's architecture relies on "stateless" components that offload all persistent state to Etcd. This design choice facilitates easy component failover but creates a "poisoned brain" scenario: if the data in Etcd is corrupted via hardware faults, software bugs, or human error, every component that reads that state will inherit the failure. Existing research often focuses on code-level bugs; however, systemic failure modes arising from state corruption remain under-explored. This paper seeks to classify these failure patterns and introduces Mutiny to proactively test K8s against them.

Methodology

The research methodology combines qualitative analysis with empirical experimentation. First, the authors performed a Field Failure Data Analysis (FFDA) on 81 real-world incidents gathered from public post-mortems and technical forums. This data informed the creation of a fault taxonomy.

Second, the researchers developed the Mutiny framework. Unlike traditional chaos engineering tools that target infrastructure (e.g., killing nodes), Mutiny operates at the data layer. It intercepts serialized communication between the kube-apiserver and etcd to inject three types of errors: bit-flips, data-type corruption (e.g., invalid values), and message drops.

The Mutiny workflow involves recording cluster state, generating a campaign, and executing injection experiments.

Experiments were conducted on an on-premises cluster using common workloads such as initial deployment, scaling, and failover. The authors have open-sourced both the framework and the resulting datasets.

Key Insights and Ideas: The Label Vulnerability

The most significant finding is the criticality of labels and selectors. These fields are the glue of Kubernetes, linking high-level abstractions (like Services) to low-level resources (like Pods). The study found that 51% of critical failures—defined as system stalls or outages—were triggered by errors in these dependency-tracking fields.

A corrupted label can cause the system to "lose" track of its existing containers. Because the controller-manager (KCM) continuously reconciles the observed state with the desired state, it may perceive a missing pod and trigger the creation of a new one. If the corruption persists, this creates an infinite loop of spawning containers.

A fault can propagate from a minor bug to control plane unavailability and eventual cluster-wide resource exhaustion.

Furthermore, these failures are often "silent." In 85% of experiments, the API server acknowledged the user's request without error, as the corruption occurred during the background reconciliation process. This lack of immediate feedback makes such failures exceptionally difficult to detect without advanced monitoring.

Key Results

The experimental campaign yielded several alarming statistics regarding K8s stability:

  • Systemic Failure: Approximately 3% of all injections caused a total system-wide failure, manifesting as either a "Stall" (unresponsive cluster) or an "Outage" (service downtime).
  • Resource Chaos: 24% of injections led to provisioning errors (under- or over-provisioning), while 4% resulted in networking failures.
  • Poisoned State: Because components are stateless, restarting them does not resolve the issue. They simply re-read the corrupted data from Etcd and fail again, rendering traditional recovery methods ineffective.
  • Critical Fields: The researchers identified 34 "critical fields" across various K8s resource types that are most susceptible to triggering severe outages.

Conclusion and Future Work

The Mutiny framework highlights a fundamental trade-off in Kubernetes: the ease of component failover provided by statelessness comes at the cost of a centralized, vulnerable state store. Current validation mechanisms in the kube-apiserver are insufficient, as they check for syntax but not logical consistency.

Future work should focus on implementing "logical circuit breakers" and more robust validation for critical fields. While this study used synthetic workloads, the findings suggest that production environments with complex topologies may face even more severe risks. The authors advocate for the adoption of proactive fault-injection tools like Mutiny to identify these "silent killers" before they impact production users.

Summary updated

BibTeX
@inproceedings{barletta2024mutiny,
  author = {Marco Barletta and Marcello Cinque and Catello Di Martino and Zbigniew T. Kalbarczyk and Ravishankar K. Iyer},
  title = {{Mutiny! How does Kubernetes fail, and what can we do about it?}},
  booktitle = {DSN},
  year = {2024},
  doi = {10.1109/dsn58291.2024.00016},
}
Figure