<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Network on Kubernetes Fail</title><link>https://kubernetes.fail/tags/network/</link><description>Recent content in Network on Kubernetes Fail</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 14 Apr 2024 14:30:00 +0200</lastBuildDate><atom:link href="https://kubernetes.fail/tags/network/index.xml" rel="self" type="application/rss+xml"/><item><title>Network Partition Causes Split-Brain</title><link>https://kubernetes.fail/posts/network-outage/</link><pubDate>Sun, 14 Apr 2024 14:30:00 +0200</pubDate><guid>https://kubernetes.fail/posts/network-outage/</guid><description>&lt;h2 id="the-incident"&gt;The Incident&lt;/h2&gt;&#10;&lt;p&gt;A network partition between availability zones caused our etcd cluster to split into two separate quorums, resulting in:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Inconsistent cluster state&lt;/li&gt;&#10;&lt;li&gt;Scheduling conflicts&lt;/li&gt;&#10;&lt;li&gt;Data corruption in stateful applications&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="root-cause"&gt;Root Cause&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Network provider had a routing issue between zones&lt;/li&gt;&#10;&lt;li&gt;Our etcd cluster was spread across 3 zones but had no zone-aware configuration&lt;/li&gt;&#10;&lt;li&gt;No network partition detection or automatic fencing&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="resolution"&gt;Resolution&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Manually identified the healthy partition&lt;/li&gt;&#10;&lt;li&gt;Forced etcd to use only the healthy members&lt;/li&gt;&#10;&lt;li&gt;Rebuilt the unhealthy nodes from backups&lt;/li&gt;&#10;&lt;li&gt;Implemented zone-aware etcd configuration&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="prevention"&gt;Prevention&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Configure etcd with strict zone awareness&lt;/li&gt;&#10;&lt;li&gt;Implement network health checks&lt;/li&gt;&#10;&lt;li&gt;Regular disaster recovery drills&lt;/li&gt;&#10;&lt;/ul&gt;</description></item></channel></rss>