Pods & Pixels

Pods & Pixels

Kubernetes Lease: Lightweight Coordination Primitive for Leader Election and Node Heartbeats

Christopher Adamson's avatar
Christopher Adamson
Aug 23, 2025
∙ Paid

Coordinating multiple actors reliably often involves leader election or periodic heartbeats. Kubernetes provides a built-in, lightweight primitive called Lease, defined in the coordination.k8s.io/v1 API group, to support exactly these patterns. You’ll commonly see Leases used under the hood by Kubernetes components—such as controllers vying for leader status and the node heartbeating mechanism in the node controller.

User's avatar

Continue reading this post for free, courtesy of Christopher Adamson.

Or purchase a paid subscription.
© 2026 Christopher Adamson · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture