Cloud Infrastructure
Google Unmasks Three-Layer Network Mystery Behind GKE API Outages
An investigation into intermittent Kubernetes API failures revealed a complex interplay of bugs spanning Private Service Connect, Envoy proxies, and the Linux kernel—requiring a coordinated fix across multiple teams.
InfoQ
When around 800 developers on Google Kubernetes Engine (GKE) encountered sporadic timeouts trying to reach their Kubernetes API servers in January, engineers initially had little clue that the fix would eventually require a patch to the Linux kernel itself.
The Symptom That Wouldn't Point to a Single Cause#
Developers running multiple GKE clusters with Private Service Connect (PSC)—which provides private control-plane access—were experiencing intermittent connectivity failures when their pods attempted to communicate with the API server. The maddening aspect of the problem was that every layer of the stack seemed to have a plausible explanation, yet none fully resolved the issue.
Analysis of packet captures revealed the core symptom: the control plane was responding to new TCP connection attempts using old ACK packets leftover from previously closed connections. This response pattern repeated across layers, making diagnosis extraordinarily difficult. As senior technical solutions engineer Akash Thakur noted, "Most networking cases resolve at one layer… This one was different because the symptom was the same whether you were looking at the Private Service Connect layer, the kernel's TCP state machine, or Envoy's connection management."
Three Bugs, One Crisis#
The root cause turned out to be a cascade of three distinct issues:
- Packet reordering in PSC disrupted the normal flow of network traffic through the private connection layer
- Envoy's half-close behavior prevented TCP connections from closing properly, leaving them in an indeterminate state
- A Linux kernel bug discarded certain reordered FIN packets, trapping sockets indefinitely in the
FIN_WAIT_2state
Each failure alone might have been manageable; together, they created a deadlock that persisted until all three were addressed.
Coordinated Recovery Across Organizations#
Fixing the problem required engineers from across GKE, Private Service Connect, networking, kernel, and the Linux upstream community to collaborate over several weeks. The remediation proceeded in three phases:
- Google rolled back a recent Private Service Connect change to restore immediate connectivity
- Teams corrected proxy protocol handling and added regression tests

