Lease

    apiVersion: coordination.k8s.io/v1

    import "k8s.io/api/coordination/v1"

    Lease defines a lease concept.


    • kind: Lease

    • metadata (ObjectMeta)

      More info:

    • spec (LeaseSpec)

      Specification of the Lease. More info:

    LeaseSpec is a specification of a Lease.


    • acquireTime (MicroTime)

      acquireTime is a time when the current lease was acquired.

      MicroTime is version of Time with microsecond level precision.

    • holderIdentity (string)

      holderIdentity contains the identity of the holder of a current lease.

    • leaseDurationSeconds (int32)

      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.

    • leaseTransitions (int32)

      leaseTransitions is the number of transitions of a lease between holders.

    • renewTime (MicroTime)

      renewTime is a time when the current holder of a lease has last updated the lease.

      MicroTime is version of Time with microsecond level precision.

    LeaseList is a list of Lease objects.


    • apiVersion: coordination.k8s.io/v1

    • kind: LeaseList

    • metadata (ListMeta)

      Standard list metadata. More info:

    • items ([]Lease), required

      Items is a list of schema objects.


    HTTP Request

    GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}

    Parameters

    • name (in path): string, required

      name of the Lease

    • namespace (in path): string, required

    • pretty (in query): string

      pretty

    Response

    200 (Lease): OK

    401: Unauthorized

    list list or watch objects of kind Lease

    HTTP Request

    GET /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases

    Parameters

    • namespace (in path): string, required

      namespace

    • allowWatchBookmarks (in query): boolean

    • continue (in query): string

      continue

    • fieldSelector (in query): string

    • labelSelector (in query): string

      labelSelector

    • limit (in query): integer

    • pretty (in query): string

      pretty

    • resourceVersion (in query): string

    • resourceVersionMatch (in query): string

      resourceVersionMatch

    • timeoutSeconds (in query): integer

    • watch (in query): boolean

    Response

    200 (): OK

    401: Unauthorized

    HTTP Request

    GET /apis/coordination.k8s.io/v1/leases

    Parameters

    • allowWatchBookmarks (in query): boolean

      allowWatchBookmarks

    • continue (in query): string

    • fieldSelector (in query): string

      fieldSelector

    • labelSelector (in query): string

    • limit (in query): integer

      limit

    • pretty (in query): string

    • resourceVersion (in query): string

      resourceVersion

    • resourceVersionMatch (in query): string

    • timeoutSeconds (in query): integer

      timeoutSeconds

    • watch (in query): boolean

    Response

    200 (): OK

    401: Unauthorized

    create create a Lease

    HTTP Request

    POST /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases

    Parameters

    • body: , required

    • dryRun (in query): string

      dryRun

    • fieldManager (in query): string

    • pretty (in query): string

      pretty

    Response

    200 (Lease): OK

    201 (): Created

    202 (Lease): Accepted

    401: Unauthorized

    HTTP Request

    PUT /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}

    Parameters

    • name (in path): string, required

      name of the Lease

    • namespace (in path): string, required

    • body: Lease, required

    • dryRun (in query): string

    • fieldManager (in query): string

      fieldManager

    • pretty (in query): string

    Response

    200 (): OK

    201 (Lease): Created

    401: Unauthorized

    patch partially update the specified Lease

    HTTP Request

    PATCH /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}

    Parameters

    • name (in path): string, required

    • namespace (in path): string, required

      namespace

    • body: , required

    • dryRun (in query): string

      dryRun

    • fieldManager (in query): string

    • force (in query): boolean

      force

    • pretty (in query): string

    Response

    200 (): OK

    201 (Lease): Created

    401: Unauthorized

    HTTP Request

    DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}

    Parameters

    • name (in path): string, required

      name of the Lease

    • namespace (in path): string, required

    • body: DeleteOptions

    • dryRun (in query): string

    • gracePeriodSeconds (in query): integer

      gracePeriodSeconds

    • pretty (in query): string

    • propagationPolicy (in query): string

      propagationPolicy

    Response

    200 (Status): OK

    202 (): Accepted

    401: Unauthorized

    deletecollection delete collection of Lease

    HTTP Request

    DELETE /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases

    Parameters

    • namespace (in path): string, required

    • body: DeleteOptions

    • continue (in query): string

    • dryRun (in query): string

      dryRun

    • fieldSelector (in query): string

    • gracePeriodSeconds (in query): integer

      gracePeriodSeconds

    • labelSelector (in query): string

    • limit (in query): integer

      limit

    • pretty (in query): string

    • propagationPolicy (in query): string

      propagationPolicy

    • resourceVersion (in query): string

    • resourceVersionMatch (in query): string

      resourceVersionMatch

    Response

    200 (Status): OK