Skip to content

Commit 05a7760

Browse files
authored
Merge pull request #42054 from kundan2707/annotation-leader
Document deprecated leader annotation
2 parents 84fd32d + f7df84d commit 05a7760

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
@@ -1209,6 +1209,27 @@ has been truncated to 1000.
12091209

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

1212+
### control-plane.alpha.kubernetes.io/leader (deprecated) {#control-plane-alpha-kubernetes-io-leader}
1213+
1214+
Type: Annotation
1215+
1216+
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}`
1217+
1218+
Used on: Endpoints
1219+
1220+
The {{< glossary_tooltip text="control plane" term_id="control-plane" >}} previously set annotation on
1221+
an [Endpoints](/docs/concepts/services-networking/service/#endpoints) object. This annotation provided
1222+
the following detail:
1223+
1224+
- Who is the current leader.
1225+
- The time when the current leadership was acquired.
1226+
- The duration of the lease (of the leadership) in seconds.
1227+
- The time the current lease (the current leadership) should be renewed.
1228+
- The number of leadership transitions that happened in the past.
1229+
1230+
Kubernetes now uses [Leases](/docs/concepts/architecture/leases/) to
1231+
manage leader assignment for the Kubernetes control plane.
1232+
12121233
### batch.kubernetes.io/job-tracking (deprecated) {#batch-kubernetes-io-job-tracking}
12131234

12141235
Type: Annotation

0 commit comments

Comments
 (0)