← All notes

Kubernetes Leases - node heartbeats and leader election in coordination.k8s.io

Answer: A Lease in the coordination.k8s.io API group is used for node heartbeats and component-level leader election. Kubernetes uses the Lease API to communicate kubelet node heartbeats to the Kubernetes API server.

Example

apiVersion: coordination.k8s.io/v1
kind: Lease
metadata:
  name: worker-1
  namespace: kube-node-lease
spec:
  holderIdentity: worker-1
  leaseDurationSeconds: 40
  renewTime: "2026-11-18T19:00:00.000000Z"
kubectl get lease -n kube-node-lease
kubectl get lease <name> -n kube-system -o yaml   # kube-scheduler / kube-controller-manager

Node heartbeats

Leader election

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Leases; kubernetes/website (GitHub), leases.md. CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Leases; kubernetes/website (GitHub), leases.md. CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors.

Cite this

Permanent ID: iil:note:my5arc19

iinventedlight. 2026. "Kubernetes Leases - node heartbeats and leader election in coordination.k8s.io." iinventedlight Library, iil:note:my5arc19, version of 2026-11-18. https://iinventedlight.com/library/notes/kubernetes-leases/. License: CC-BY-4.0.

@misc{iil_note_my5arc19,
  author = {{iinventedlight}},
  title = {{Kubernetes Leases - node heartbeats and leader election in coordination.k8s.io}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/kubernetes-leases/},
  note = {Permanent ID iil:note:my5arc19. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/kubernetes-leases.md.