Skip to main content
Version: v0.38 Stable

sleep

The sleep key configures automatic sleep and wakeup. For how to configure it, see Configure auto sleep.

sleep object ​

Sleep holds configuration for automatically putting the virtual cluster to sleep.

auto object ​

Auto holds automatic sleep configuration

afterInactivity string ​

AfterInactivity represents how long a vCluster can be idle before workloads are automatically put to sleep

schedule string ​

Schedule represents a cron schedule for when to sleep workloads

exclude object ​

Exclude holds configuration for labels that, if present, will prevent a workload from going to sleep

selector object ​
labels object ​

Labels defines what labels should be looked for

wakeup object ​

Wakeup holds configuration for waking the vCluster on a schedule

schedule string ​

timezone string ​

Timezone specifies time zone used for scheduled sleep operations. Defaults to UTC. Accepts the same format as time.LoadLocation() in Go (https://pkg.go.dev/time#LoadLocation). The value should be a location name corresponding to a file in the IANA Time Zone database, such as "America/New_York".