KubernetesLeaseSettings
Defined in: src/coordination/leases/KubernetesLease.ts:22
K8s-specific additions to the common lease settings. When apiServerUrl,
authToken, or caCert are omitted the adapter probes the standard
ServiceAccount mount points (/var/run/secrets/kubernetes.io/...).
client is a test seam — pass a fake K8sFetchClient to drive the
lease without a real API server.
Extends
Section titled “Extends”Properties
Section titled “Properties”acquireRetries?
Section titled “acquireRetries?”
readonlyoptionalacquireRetries?:number
Defined in: src/coordination/Lease.ts:40
Max attempts for a single acquire() before returning false.
Inherited from
Section titled “Inherited from”acquireRetryDelayMs?
Section titled “acquireRetryDelayMs?”
readonlyoptionalacquireRetryDelayMs?:number
Defined in: src/coordination/Lease.ts:42
Delay between acquire retries.
Inherited from
Section titled “Inherited from”LeaseSettings.acquireRetryDelayMs
apiServerUrl?
Section titled “apiServerUrl?”
readonlyoptionalapiServerUrl?:string
Defined in: src/coordination/leases/KubernetesLease.ts:26
API-server URL. Defaults to the in-cluster service or https://kubernetes.default.svc.
authToken?
Section titled “authToken?”
readonlyoptionalauthToken?:string
Defined in: src/coordination/leases/KubernetesLease.ts:28
Bearer token for the ServiceAccount. Reads /var/run/... if omitted.
caCert?
Section titled “caCert?”
readonlyoptionalcaCert?:string
Defined in: src/coordination/leases/KubernetesLease.ts:30
PEM-encoded CA cert for the API server. Reads /var/run/... if omitted.
client?
Section titled “client?”
readonlyoptionalclient?:K8sFetchClient
Defined in: src/coordination/leases/KubernetesLease.ts:32
Test seam — inject a fake fetch client.
readonlyname:string
Defined in: src/coordination/Lease.ts:32
Lease name — unique identifier within the namespace.
Inherited from
Section titled “Inherited from”namespace
Section titled “namespace”
readonlynamespace:string
Defined in: src/coordination/leases/KubernetesLease.ts:24
Kubernetes namespace that owns the coordination.k8s.io/v1/Lease object.
readonlyowner:string
Defined in: src/coordination/Lease.ts:34
Identifier of the holder (pod name / host name / uuid).
Inherited from
Section titled “Inherited from”renewalIntervalMs?
Section titled “renewalIntervalMs?”
readonlyoptionalrenewalIntervalMs?:number
Defined in: src/coordination/Lease.ts:38
How often to renew (< ttlMs — typically ttl/3).
Inherited from
Section titled “Inherited from”LeaseSettings.renewalIntervalMs
readonlyttlMs:number
Defined in: src/coordination/Lease.ts:36
Time-to-live in ms — the backend auto-expires if we fail to renew.