You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
holderIdentity contains the identity of the holder of a current lease.
78
+
holderIdentity contains the identity of the holder of a current lease. If Coordinated Leader Election is used, the holder identity must be equal to the elected LeaseCandidate.metadata.name field.
75
79
-->
76
80
-**acquireTime** (MicroTime)
77
81
@@ -83,38 +87,61 @@ LeaseSpec 是一个 Lease 的规约。
83
87
-**holderIdentity** (string)
84
88
85
89
holderIdentity 包含当前租约持有人的身份。
90
+
如果使用协调领导者选举(Coordinated Leader Election),
91
+
则持有人身份必须等于选举出的 LeaseCandidate.metadata.name 字段。
86
92
87
93
<!--
88
94
- **leaseDurationSeconds** (int32)
89
95
90
-
leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed renewTime.
96
+
leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measured against the time of last observed renewTime.
91
97
92
98
- **leaseTransitions** (int32)
93
99
94
100
leaseTransitions is the number of transitions of a lease between holders.
95
101
96
-
- **renewTime** (MicroTime)
102
+
- **preferredHolder** (string)
97
103
98
-
renewTime is a time when the current holder of a lease has last updated the lease.
99
-
100
-
<a name="MicroTime"></a>
101
-
*MicroTime is version of Time with microsecond level precision.*
104
+
PreferredHolder signals to a lease holder that the lease has a more optimal holder and should be given up. This field can only be set if Strategy is also set.
renewTime is a time when the current holder of a lease has last updated the lease.
124
+
125
+
<a name="MicroTime"></a>
126
+
*MicroTime is version of Time with microsecond level precision.*
127
+
128
+
- **strategy** (string)
129
+
130
+
Strategy indicates the strategy for picking the leader for coordinated leader election. If the field is not specified, there is no active coordination for this lease. (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
0 commit comments