For the complete documentation index, see llms.txt. A markdown version of this page is at /reference/resources/workstationpool/index.md.

WorkstationPool and WorkstationPoolLease

A set of workstations that Ringleader builds from one template and lends out one at a time, each through a lease.

A WorkstationPool is a set of workstations that Ringleader builds from one template and lends out one at a time, each through a WorkstationPoolLease. This page lists the fields of both kinds. Pools and leases explains how a pool works and how to use one.

Spec fields

FieldTypeDescription
template.metadata.labelsmapLabels every member carries, beside the pool’s own pools.ringleader.dev/pool label.
template.specobjectRequired. Each member’s spec, checked as a Workstation’s would be. stopped, lifecycle, ttl, ttlAction and the nonce fields are refused.
size.maxintRequired. The most members at once, from 1 to 1000.
warm.running, warm.stoppedintIdle members kept running and kept stopped. Default 0 each. Their sum may not exceed size.max.
idle.stopAfter, idle.deleteAfterstringHow long an idle member above the floors stays running, then how long it stays stopped. Default 15m and 72h.
maxAgestringHow long any member is kept. An idle member past it is deleted and never recycled. Default 168h.
lease.maxTermstringHow far ahead a lease’s expiresAt may be set, and its default when left out. Default 24h, at most 30 days.
lease.failedRetentionstringHow long a Failed lease is kept. Default 24h.
lease.maxPendingintHow many leases may wait at once, and how many Failed ones are kept. Default 100, at most 1000.
lease.configChangesstringApply or Hold. Whether a configuration change reaches a leased member at once, or waits until its lease ends. Absent means Apply.
recycleobjectPresent only when the pool recycles. {maxReuses, timeout, reboot}, default 20, 10m and false.

Status fields

The pool writes a constant-size summary. Members and leases are listed by name with rl workstationpool describe, and each member’s own Workstation carries its pool state as annotations.

FieldTypeDescription
phasestringActive, Degraded when the template keeps failing or the owner may not create workstations, or Terminating.
messagestringThe one-line headline. A Terminating pool says how many leases it waits for and when the last one expires.
membersobjectCounts of provisioning, idleRunning, idleStopped, leased, recycling, retiring and cordoned members.
warmobject{running, stopped}: the idle members built from the current template, and not cordoned, that fill the two floors.
leasesobject{pending, oldestPendingSince}.
capacityintHow many leases the pool can serve at once. size.max less cordoned members while the pool can build, the members that can serve while it cannot, and 0 while it is being deleted.
templateHashstringThe hash of the current template. A member built from another hash is replaced once idle.
configChangesstringThe mode in force, Apply or Hold.
observedGenerationintThe metadata.generation this status was computed for.
conditions[]objectTemplateHealthy, WithinQuota, WithinRunningCaps, WithinCloudCapacity and OwnerAuthorized.

rl workstationpool get prints the phase, the capacity, and the idle, leased and pending counts. rl workstationpool wait without --for waits until every condition the pool reports is True and both warm floors are filled.

Lease spec fields

FieldTypeDescription
workstationPoolRefobjectRequired. {name}: the pool to lease from, in the lease’s namespace. It never changes after the lease is created.
statestringNeeded, Done or Recycle. It moves forward only: from Needed to Done or Recycle, and from Recycle to Done.
expiresAtstringWhen the lease ends if nobody releases it, as a timestamp. Default: one lease.maxTerm after the write. A time in the past, or more than one lease.maxTerm ahead, is rejected.
authorizedKeys[]stringPublic SSH keys that can log in as the member’s login user while the lease holds it.

Lease phases

PhaseMeaning
PendingWaiting for a member.
BoundA member is assigned and is starting, configuring, or taking on this lease’s keys.
ReadyThe member is usable. Its Ready condition is True, and status.workstation names it.
ReleasingThe holder asked for Done or Recycle. Access is being removed and the member deleted or recycled. The lease is deleted when that finishes.
FailedThe lease ended without the holder asking. status.release.reason says why.

Lease status fields

FieldTypeDescription
phasestringPending, Bound, Ready, Releasing or Failed.
messagestringWhy a lease waits, or what ended it.
workstation, workstationUIDstringThe bound member.
boundAt, readyAtstringWhen the member was bound and became ready.
expiresAtstringThe expiry in force, the default included. It follows a renewal while the lease is Pending, Bound or Ready.
failedAtstringWhen the lease reached Failed, which starts lease.failedRetention.
releaseobject{action, reason}. action is Deleted when the member was deleted. reason is Requested, Expired, WorkstationLost, PoolDeleted, RecycleFailed, RecycleTimedOut, or one of the six reasons a Recycle request deletes the member instead, which Member recycling lists. A successful recycle deletes the lease, so it leaves no reason; the pool’s Recycled event records it.
conditions[]objectReady.

rl workstationpoollease get prints each lease’s holder, pool, phase, member and expiry, and --mine narrows the list to your own. rl workstationpoollease wait without --for waits for Ready, and a Failed lease ends the wait.

Next steps