Lease [page]deterministic
Lease defines a lease concept.
`apiVersion: coordination.k8s.io/v1`
`import "k8s.io/api/coordination/v1"`
## Lease {#Lease}
Lease defines a lease concept.
<hr>
<table> <thead><tr><th>Field</th><th>Description</th></tr></thead> <tbody> <tr> <td><code>apiVersion</code><br/><em>string</em></td> <td>APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</td> </tr> <tr> <td><code>kind</code><br/><em>string</em></td> <td>Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds</td> </tr> <tr> <td><code>metadata</code><br/><em><a href="">ObjectMeta</a></em></td> <td>More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata</td> </tr> <tr> <td><code>spec</code><br/><em><a href="">LeaseSpec</a></em></td> <td>spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status</td> </tr> </tbody> </table>
## LeaseSpec {#LeaseSpec}
LeaseSpec is a specification of a Lease.
<hr>
<table> <thead><tr><th>Field</th><th>Description</th></tr></thead> <tbody> <tr> <td><code>acquireTime</code><br/><em><a href="">MicroTime</a></em></td> <td>acquireTime is a time when the current lease was acquired.</td> </tr> <tr> <td><code>holderIdentity</code><br/><em>string</em></td> <td>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.</td> </tr> <tr> <td><code>leaseDurationSeconds</code><br/><em>integer</em></td> <td>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.</td> </tr> <tr> <td><code>leaseTransitions</code><br/><em>integer</em></td> <td>leaseTransitions is the number of transitions of a lease between holders.</td> </tr> <tr> <td><code>preferredHolder</code><br/><em>string</em></td> <td>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.</td> </tr> <tr> <td><code>renewTime</code><br/><em><a href="">MicroTime</a></em></td> <td>renewTime is a time when the current holder of a lease has last updated the lease.</td> </tr> <tr> <td><code>strategy</code><br/><em>string</em></td> <td>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.</td> </tr> </tbody> </table>
## LeaseList {#LeaseList}
LeaseList is a list of Lease objects.
<hr>
<table> <thead><tr><th>Field</th><th>Description</th></tr></thead> <tbody> <tr> <td><code>apiVersion</code><br/><em>string</em></td> <td>APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources</td> </tr> <tr> <td><code>items</code> <strong>*</strong><br/><em><a href="">Lease array</a></em></td> < …(trimmed)