KEDA Scale-to-Zero for Kubernetes Dev Environments: Beyond Cron-Based Schedules
This is article 2 in a series on Kubernetes Cost Optimization. In the first article, I went through the three layers where cost waste hides. This article goes deep on one specific pattern: making dev environments exist only when someone is really using them, and scale to zero otherwise. A client of mine was running more than 35 dev environments across their Kubernetes cluster. The client was aware that having dev environments running 24/7 makes no sense, so we started implementing a simple cron-based scaling: environments were up every weekday from 8 AM to 7 PM. This reduces costs, theoretically, by 67% (in practice we talk about ~50%, but that’s another topic). ...