Skip to content

Commit f7df84d

Browse files
committed
documented annotation leader
1 parent 6cd785e commit f7df84d

File tree

1 file changed

+21
-0
lines changed
  • content/en/docs/reference/labels-annotations-taints

1 file changed

+21
-0
lines changed

content/en/docs/reference/labels-annotations-taints/_index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,27 @@ has been truncated to 1000.
10861086

10871087
If the number of backend endpoints falls below 1000, the control plane removes this annotation.
10881088

1089+
### control-plane.alpha.kubernetes.io/leader (deprecated) {#control-plane-alpha-kubernetes-io-leader}
1090+
1091+
Type: Annotation
1092+
1093+
Example: `control-plane.alpha.kubernetes.io/leader={"holderIdentity":"controller-0","leaseDurationSeconds":15,"acquireTime":"2023-01-19T13:12:57Z","renewTime":"2023-01-19T13:13:54Z","leaderTransitions":1}`
1094+
1095+
Used on: Endpoints
1096+
1097+
The {{< glossary_tooltip text="control plane" term_id="control-plane" >}} previously set annotation on
1098+
an [Endpoints](/docs/concepts/services-networking/service/#endpoints) object. This annotation provided
1099+
the following detail:
1100+
1101+
- Who is the current leader.
1102+
- The time when the current leadership was acquired.
1103+
- The duration of the lease (of the leadership) in seconds.
1104+
- The time the current lease (the current leadership) should be renewed.
1105+
- The number of leadership transitions that happened in the past.
1106+
1107+
Kubernetes now uses [Leases](/docs/concepts/architecture/leases/) to
1108+
manage leader assignment for the Kubernetes control plane.
1109+
10891110
### batch.kubernetes.io/job-tracking (deprecated) {#batch-kubernetes-io-job-tracking}
10901111

10911112
Type: Annotation

0 commit comments

Comments
 (0)