DiscoverKubeFMTeaching Kubernetes to Scale with a MacBook Screen Lock, with Brian Donelan
Teaching Kubernetes to Scale with a MacBook Screen Lock, with Brian Donelan

Teaching Kubernetes to Scale with a MacBook Screen Lock, with Brian Donelan

Update: 2025-08-26
Share

Description

Brian Donelan, VP Cloud Platform Engineering at JPMorgan Chase, shares his ingenious side project that automatically scales Kubernetes workloads based on whether his MacBook is open or closed.

By connecting macOS screen lock events to CloudWatch, KEDA, and Karpenter, he built a system that achieves 80% cost savings by scaling pods and nodes to zero when he's away from his laptop.

You will learn:

  • How KEDA differs from traditional Kubernetes HPA - including its scale-to-zero capabilities, event-driven scaling, and extensive ecosystem of 60+ built-in scalers

  • The technical architecture connecting macOS notifications through CloudWatch to trigger Kubernetes autoscaling using Swift, AWS SDKs, and custom metrics

  • Cost optimization strategies including how to calculate actual savings, account for API costs, and identify leading indicators of compute demand

  • Creative approaches to autoscaling signals beyond CPU and memory, including examples from financial services and e-commerce that could revolutionize workload management

Sponsor

This episode is brought to you by Testkube—the ultimate Continuous Testing Platform for Cloud Native applications. Scale fast, test continuously, and ship confidently. Check it out at testkube.io

More info

Comments 
In Channel
loading
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

Teaching Kubernetes to Scale with a MacBook Screen Lock, with Brian Donelan

Teaching Kubernetes to Scale with a MacBook Screen Lock, with Brian Donelan