The efficient way of Autoscaling Your Workload in Kubernetes
summary
Baseline cost is about $9 for the demo app. Using k6 load tests, OpenCost and Istio/Envoy metrics, iterative tuning of requests and limits drops cost to about $2.4 but introduces CPU throttling and unstable response times. Adding autoscaling via HorizontalPodAutoscaler with a custom metric source and finally exposing observability through the Keptn Metric Server (and Keptn Metrics Operator) lets HPA use Istio/Envoy metrics and ultimately a CPU throttling metric to reach about $1.6 while keeping response time stable.
AI-written summary · about
chapters (7)
- 0:00Introduction and speaker intro
- 3:11Story of optimizing a Kubernetes cluster
- 7:47Understanding Kubernetes costs and workload resizing
- 16:21Introducing Horizontal Pod Autoscaler (HPA)
- 21:15Extending HPA with custom metrics
- 26:09Key takeaways and recommendations
- 28:16Q&A session begins
related talks
29mKubernetes Autoscaling: Beyond One Size Fits All
34mIntroduction to Autoscaling
30mHorizontal Pod Autoscaler Reloaded - Scale on Custom Metrics
15mDemo: Resource(Cost) optimization on planet scale Kubernetes clusters.
51mHorizontal Autoscaling with Kubernetes
35mAutoscaling Kubernetes Deployments: A (Mostly) Practical Guide
19mBuilding Cost Visibility For Your Kubernetes Clusters
44mFinOps at scale: Lessons from scaling Kubernetes workloads
