<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Disk on Kubernetes Fail</title><link>https://kubernetes.fail/tags/disk/</link><description>Recent content in Disk on Kubernetes Fail</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 13 Apr 2024 10:00:00 +0200</lastBuildDate><atom:link href="https://kubernetes.fail/tags/disk/index.xml" rel="self" type="application/rss+xml"/><item><title>First Kubernetes Failure: Node Out of Disk</title><link>https://kubernetes.fail/posts/first-post/</link><pubDate>Sat, 13 Apr 2024 10:00:00 +0200</pubDate><guid>https://kubernetes.fail/posts/first-post/</guid><description>&lt;h2 id="what-happened"&gt;What Happened&lt;/h2&gt;&#10;&lt;p&gt;Our production Kubernetes cluster experienced a complete outage when all worker nodes ran out of disk space simultaneously. This was caused by:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Unbounded log growth from a misconfigured application&lt;/li&gt;&#10;&lt;li&gt;No disk space monitoring alerts&lt;/li&gt;&#10;&lt;li&gt;Default emptyDir volumes filling up node storage&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="the-impact"&gt;The Impact&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;All pods became pending as nodes were marked unschedulable&lt;/li&gt;&#10;&lt;li&gt;4 hours of downtime during peak traffic&lt;/li&gt;&#10;&lt;li&gt;Data loss for applications using emptyDir storage&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="lessons-learned"&gt;Lessons Learned&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;strong&gt;Monitor disk usage&lt;/strong&gt;: Set up alerts at 70%, 80%, and 90% capacity&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Log rotation&lt;/strong&gt;: Configure proper log rotation for all containers&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Resource limits&lt;/strong&gt;: Set storage limits on emptyDir volumes&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Multi-zone deployment&lt;/strong&gt;: Distribute workloads across availability zones&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="the-fix"&gt;The Fix&lt;/h2&gt;&#10;&lt;p&gt;We implemented:&lt;/p&gt;</description></item></channel></rss>