Three failures in three layers can look like one ordinary timeout. That’s what made this GKE incident so difficult: pods couldn’t reliably reach the Kubernetes API server, but the cause wasn’t a broken application or an overloaded control plane. The investigation eventually led from Google’s networking fabric to TCP connection handling in the Linux kernel.
The first support ticket arrived in January 2026. A customer’s pods were intermittently timing out when they tried to reach the API server. By the time the team traced the failure, about 800 developers had been blocked from production deployments for weeks, and GKE clusters across europe-west were affected. Engineers from GKE, Private Service Connect (PSC), networking, hostnet, the kernel team, and the Linux upstream community worked through three separate root causes. The final fix required a Linux kernel patch.
Here’s the part that matters if you run infrastructure like this: a familiar timeout can hide a failure far below the workload that reports it. The customer had already ruled out its own operators. The team still had to eliminate several plausible explanations before the packet captures exposed what was happening.
One timeout, across five clusters
The customer ran a large, multi-cluster GKE environment in Google Cloud’s europe-west region. Its clusters used PSC to connect privately to the GKE control plane and ran a mix of system workloads, including Twistlock security scanners, External Secrets Operator, Cilium network policy, and internal Kubernetes operators.
The first errors showed up in a user acceptance testing (UAT) cluster in europe-west3. A few days later, a second cluster in the region began reporting them too. Applications in multiple namespaces saw variations of the same failure:
TimeoutError: Connect call failed ('1.2.3.4', 443)
dial tcp 1.2.3.4:443: i/o timeout
# 1.2.3.4 is the cluster's internal VIP for the kube-apiserver,
# routed through Private Service ConnectAt first, the timeouts came in bursts. The customer suspected a custom operator built with the kopf framework, but the errors had started eight days before it was deployed. Shutting it down made no difference.
“The issue persists even after completely scaling down the External Secrets Operator. The errors are appearing from customer workloads, and system-level pods we haven't touched.”
The team then removed External Secrets Operator at the customer’s request and uninstalled the security agents. Neither action stopped the failures. Timeouts continued in workloads that needed Kubernetes control plane (KCP) connectivity, as well as in cluster system pods.
Conntrack exhaustion looked possible: perhaps half-open connections were filling the connection tracking table on the control plane nodes. They weren’t. The table was at roughly 50% of its default maximum of 1.3 million entries. The team also increased the KCP virtual machine size; kube-apiserver latency remained healthy, and the connection timeouts continued.
The scope was the stronger clue. The issue affected DaemonSets, Deployments, and system pods across five clusters. Developers’ laptops and GitHub Actions runners also had trouble reaching the API server. That’s a hard pattern to explain with a single faulty workload. The failure was somewhere along the route shared by all those clients.
Following the packets
The escalation unfolded over 22 days:
- Day 1: Intermittent I/O timeouts appeared in one UAT cluster in europe-west3.
- Day 10: The errors became persistent and more frequent.
- Day 15: Multiple affected clusters were confirmed. With about 800 developers blocked and production releases frozen, the case was escalated as a P0 bug.
- Day 20: The custom operator, security agents, conntrack exhaustion, and control plane capacity had all been ruled out.
- Day 22: Engineers captured packets simultaneously at the control plane node’s network interface and inside the kube-api container.
Once the application layer had run out of useful answers, the investigation moved to the wire.
A long path behind a local-looking address
A pod connecting to a GKE API server through PSC doesn’t make a direct connection to the control plane. The address it dials is a virtual endpoint, and the traffic passes through several systems before reaching the server.
The route runs from the pod through its worker node, then through PSC’s NAT and proxy, an internal passthrough Network Load Balancer, the KCP virtual machine’s NIC, and finally Envoy, which proxies requests to kube-apiserver. PSC also adds a proxy protocol header to new connections so the server can identify the client’s real IP. That detail would matter later.
Captures from the KCP VM’s PIGv interface—a Google programmable virtual NIC—and from inside the kube-apiserver container showed that the clients’ SYN packets were reaching the VM. The expected SYN-ACK reply wasn’t making it back. Instead, clients received an ACK that belonged to an earlier connection.
Wireshark labeled the traffic “TCP Port numbers reused.” That label sounds routine. The packet sequence wasn’t:
Time Source Destination Info
09:13:41 10.0.13.77:53426 10.117.0.2:443 [SYN] Seq=0 Win=42600
09:13:41 10.117.0.2:443 10.0.13.77:53426 [SYN, ACK] Seq=0 Ack=1 Win=64768
... (data exchange, connection completes)
09:13:42 10.117.0.2:443 10.0.13.77:53426 [TCP Retransmission]
09:13:42 10.117.0.2:443 10.0.13.77:53426 [TCP Retransmission]
... (many retransmissions of the same ACK)
# The capture's annotation says the port is reused two minutes later.
# The timestamps shown below are two seconds apart.
09:13:44 10.0.13.77:53426 10.117.0.2:443 [SYN] Seq=1498 # new connection
Expected: SYN-ACK
Received: ACK Seq=1498 Ack=1025 — from the previous stream
09:13:44 10.0.13.77:53426 10.117.0.2:443 [SYN] Retransmit
09:13:44 10.0.13.77:53426 10.117.0.2:443 [SYN] Retransmit
... eventually: i/o timeoutThe server was answering a fresh SYN with an ACK from a connection that had already ended. In the example, the old and new connections used the same client source port, 53426, and the KCP VM had not fully cleared the old connection’s state.
The shutdown sequence was also out of order. The KCP server sent FIN,ACK; the client replied with FIN,ACK and then ACK. But the server received the ACK before the FIN,ACK, never acknowledged that FIN,ACK, and kept retransmitting the ACK. Sending an RST didn’t clear the state.
The missing challenge ACK
While one group studied the packet captures, another checked metrics for the user space packet switch (USPS), the software switching layer that handles NAT and proxy protocol header injection for PSC connections. Andromeda, Google’s networking fabric, had a counter named “Proxy protocol drop: invalid ACK packet.” It had been flat for months, then rose sharply in February 2026 to several drops per second across the affected europe-west regions.
The jump coincided with a USPS version rollout. That release addressed a different bug, but it changed how PSC treated a particular class of packet. To see why that mattered, it helps to understand TCP challenge ACKs, which RFC 5961 defines as a security mechanism.
After a TCP connection closes, the server’s kernel may retain its sequence numbers briefly. If a new connection arrives on the same five-part tuple—the same source and destination addresses, ports, and protocol—the kernel may not know at once whether it’s seeing a legitimate new connection or a stale packet from the old one.
RFC 5961 says the server should challenge an ambiguous SYN with an ACK carrying the old connection’s last known sequence number. A legitimate client sees that unexpected ACK and sends an RST, clearing the stale state. The server can then accept a new SYN and complete the handshake.
# 1. Client sends a SYN using a recently reused connection tuple
Client → Server: SYN (seq=X)
# 2. Server, still in FIN_WAIT_2, sends a challenge ACK
Server → Client: ACK (ack=old_seq)
# 3. Client recognizes stale state and resets it
Client → Server: RST
# 4. State clears; the next connection completes normally
Client → Server: SYN
Server → Client: SYN-ACKThe process depends on the challenge ACK reaching the client. The new USPS behavior was dropping it.
The USPS change aimed to address a real security issue in PSC’s proxy protocol handling. As part of that work, it dropped packets classified as “invalid ACKs” during the handshake—specifically, ACKs arriving before the initial SYN-ACK. In an ordinary handshake, that sequence looks anomalous. A challenge ACK fits the same pattern: it arrives in response to a SYN, before the new connection has completed. USPS silently discarded it.
PSC’s NAT made the impact worse. Many pods on different nodes and in different namespaces shared a single endpoint, increasing the chance that a new connection reused a five-part tuple. Challenge ACKs had always been part of the TCP stack’s handling of stale connections; the USPS change made them disappear in a situation where GKE relied on them to clear old state.
Rolling back the change
The rollback stopped the timeouts, but it didn’t explain them
In February, the team reversed the USPS change that had been dropping challenge ACKs. The rate of “Proxy protocol drop: invalid ACK packet” quickly fell toward its previous baseline, and by early March 2026 the customer confirmed that every affected cluster had recovered. The timeout errors stopped. That was relief, not resolution. The rollback restored behavior the system had come to depend on by accident. The unanswered question was why KCP VMs were leaving connections in FIN_WAIT_2 for more than two minutes. Answering it meant tracing three separate failures that happened to line up.Three failures, one connection that wouldn’t close
The first clue came from packet captures taken at the same time from two points: the host NIC of the machine running the KCP VM, and the PIGv, the virtual NIC visible to the VM. Packets were ordered correctly at the host NIC. After passing through USPS and reaching the PIGv, they weren’t. The explanation lay in Private Service Connect’s miss-thread processing. A packet that starts an unfamiliar flow takes a slower path while the proxy protocol header is added and NAT state is created. Later packets in that flow take a faster route. During connection shutdown, that difference can let a FIN or RST arrive out of order relative to subsequent ACKs. Here’s the sequence the KCP VM saw: ```text # Expected close: Client → Server: FIN, ACK Server → Client: ACK Server → Client: FIN, ACK Client → Server: ACK → Both sides close the connection. # Reordered close at the KCP VM: Client → Server: ACK Client → Server: FIN, ACK Server → Client: FIN, ACK Client → Server: FIN, ACK → The server should acknowledge the client's FIN, but doesn't. ``` The client’s FIN arrived after the server had sent its own FIN. The server moved through FIN_WAIT_1 and into FIN_WAIT_2 after receiving the client’s ACK of the server’s FIN. Then the client’s FIN arrived, and the kernel failed to handle it.Why the socket stayed in FIN_WAIT_2
Linux has a setting, `tcp_fin_timeout`, that limits how long an orphaned socket can remain in FIN_WAIT_2. It was set to 60 seconds on the KCP VM. But “orphaned” is the key condition: the timeout applies only when no process still holds the socket. Envoy, which sits in front of kube-apiserver on the KCP VM, had called `shutdown(SHUT_WR)`. That closes the connection’s write side while leaving its read side open, a valid way to perform a TCP half-close. Because Envoy still held the socket, Linux didn’t treat it as orphaned, so `tcp_fin_timeout` never began. The socket waited in FIN_WAIT_2 for a FIN the kernel wasn’t handling correctly. ```text Proto Local Address Foreign Address State tcp 10.128.0.5:443 10.0.13.77:53426 FIN_WAIT_2 # More than 120 seconds in FIN_WAIT_2. # tcp_fin_timeout=60 has not fired: Envoy still holds the socket with SHUT_WR. # # Private Service Connect NAT later reuses port 53426 for a new pod connection. # The kernel receives a SYN on the same 5-tuple and sends a challenge ACK. # USPS drops that ACK, and the connection times out. ``` There was still a third failure to explain. A healthy kernel should accept a FIN in FIN_WAIT_2 and move the socket to TIME_WAIT. On the KCP VM, the FIN instead disappeared during processing. The relevant code was Linux’s `tcp_ack()` function. The KCP VMs ran Container-Optimized OS (COS) builds based on kernel 6.1 or 6.6 ([Container-Optimized OS documentation](https://docs.cloud.google.com/container-optimized-os/docs)). RFC 5961 allows certain old ACK numbers when they fall within an acceptable sequence window, helping TCP tolerate packet reordering. In kernel 6.1, one path through `tcp_ack()` returned zero for an old but acceptable ACK. The FIN-processing caller interpreted zero as “not fully processed” and did nothing. The FIN was silently discarded. The upstream fix was commit `795a7dfbc3d9`, authored by Eric Dumazet: ```text net: tcp: accept old ack during closing tcp_ack() returns 0 when ack is old but acceptable wrt rfc5961. In FIN_WAIT_2, this caused tcp_fin() to never be called for a valid received FIN, leaving the connection stuck indefinitely. Fixed: properly handle old-but-acceptable ACKs during connection close. Introduced in 6.1, fixed in 6.9.7. LTS backports: 6.6.y and 6.1.y. ``` The bug was introduced in 6.1 and fixed upstream in 6.9.7, with backports to the 6.6.y and 6.1.y long-term support branches. GKE needed the fix in its COS images.Why all three mattered
None of these issues alone explains the outage. Reordering can disrupt a close, but the kernel should still process the FIN eventually. Envoy’s half-close is legitimate behavior; it becomes a problem when the FIN is lost. The kernel bug can leave connections hanging, but without Private Service Connect’s port reuse, its impact would be more limited. Together, the failures formed a chain: Private Service Connect reordered packets; the kernel mishandled the client’s FIN; Envoy kept the socket from becoming eligible for its timeout; and NAT eventually reused the port. The kernel then sent a challenge ACK for the new connection, and USPS dropped it. The result was an I/O timeout. The remedy had to address all three layers: - **Immediate mitigation, February 2026:** The USPS change was rolled back, restoring the previous behavior of forwarding challenge ACKs. The customer’s clusters had recovered by early March. - **Proxy correctness fix:** A replacement change addressed the challenge ACK scenario in the Private Service Connect proxy protocol layer. The team also added a PacketDrill test to catch regressions. - **Kernel fix:** Eric Dumazet’s upstream patch, “net: tcp: accept old ack during closing,” was merged into Linux 6.9.7 and backported to 6.6.y and 6.1.y. It ships in GKE 1.33.5 and later, resolving the issue at the OS level for GKE versions running those COS images.The evidence had to cross team boundaries
The timeout looked similar whether viewed from Private Service Connect, the Linux TCP state machine, or Envoy. Each layer offered a plausible explanation, but none told the whole story. This is what makes the case more instructive than a routine networking failure: the cause lived in the interaction between systems that each appeared to be behaving reasonably on their own. Simultaneous captures at the host NIC, PIGv, and inside the container exposed the packet reordering. Matching those captures against the USPS metric spike on February 18 pointed to dropped challenge ACKs. Reproducing the behavior in a lab then revealed the kernel bug that let FIN_WAIT_2 persist. Without all three steps, the investigation could easily have stopped at the rollback. The work also depended on engineers across seven or eight specialties over two weeks: GKE networking, Private Service Connect infrastructure, Hostnet, Andromeda, KCP, and the kernel community. Shared case notes, a bug tracker, and carefully collected packet captures connected a team spread across those areas. The customer returned to production, and the kernel received a fix for a real TCP failure. The lasting lesson is less tidy: a packet ordering quirk, a valid half-close, a kernel bug, and a proxy change combined to defeat assumptions at several layers at once. The rollback bought time. Only tracing the whole path explained why.This article draws on real case data from an anonymized customer support engagement and internal bugs. The Linux kernel fix is commit 795a7dfbc3d9, authored by Eric Dumazet. Thanks to the engineers across GKE, Private Service Connect, Hostnet, Andromeda, COS, and the Linux networking community who contributed to the resolution.