autoSleep
This feature is an Enterprise feature. See our pricing plans or contact our sales team for more information.
The virtual cluster can be scheduled to sleep and wake up in the vcluster.yaml
, but in order to use this ability, the vCluster also will need to be connected to the platform.
Example​
external:
platform:
autoSleep:
schedule: * 17 * * * # Sleep at 5 PM
autoWakeup:
schedule: * 9 * * * # Wakeup at 9 AM
Config reference​
autoSleep
required object ​
AutoSleep holds configuration for automatic sleep and wakeup
autoSleep
required object ​afterInactivity
required integer ​
AfterInactivity specifies after how many seconds of inactivity the virtual cluster should sleep
afterInactivity
required integer ​schedule
required string ​
Schedule specifies scheduled virtual cluster sleep in Cron format, see https://en.wikipedia.org/wiki/Cron.
Note: timezone defined in the schedule string will be ignored. Use ".Timezone" field instead.
schedule
required string ​timezone
required string ​
Timezone specifies time zone used for scheduled virtual cluster 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".
timezone
required string ​autoWakeup
required object ​
AutoSleep holds configuration for automatic wakeup
autoWakeup
required object ​schedule
required string ​
Schedule specifies scheduled wakeup from sleep in Cron format, see https://en.wikipedia.org/wiki/Cron.
Note: timezone defined in the schedule string will be ignored. The timezone for the autoSleep schedule will be
used
schedule
required string ​