Lease
A small Kubernetes object that a component keeps renewing to show it is alive or that it holds a leadership role.
In more detail
Each node has a Lease in the kube-node-lease namespace that its kubelet renews as a cheap heartbeat. Control plane components use Leases for leader election. A lease that stops being renewed is the signal that its holder has gone.
Related terms
- leader election — The process by which the members of a distributed system choose one of themselves to act as leader.
- node heartbeat — The regular signal a kubelet sends to the API server, by renewing its Lease and updating node status, to show the node is alive.
Taught in
- A Node Goes NotReady Forty Minutes In — Certified Kubernetes Administrator (CKA) Exam Prep
- HA Control Planes: Quorum, Stacked Or External — Certified Kubernetes Administrator (CKA) Exam Prep
- kubeadm, High Availability And Cluster Lifecycle — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: NotReady Nodes And kubelet Logs — Kubernetes: Production-Grade Container Orchestration