External Configuration
This feature is available in the vCluster Pro tier. Contact us for more details and to start a trial.
The external section is for configuring tools external to vCluster.
Platform
In the platform section you can configure vCluster Platform features like autoSleep, to clean up unused resources for cost savings.
Example
external:
platform:
autoSleep:
afterInactivity: 600 # 10 minutes
Config reference
platform
required object pro
Platform holds configuration for vCluster platform
platform
required object proapiKey
required object pro
APIKey defines where to find the platform access key and host. By default, vCluster will search in the following locations in this precedence:
- platform.api.accessKey
- environment variable called LICENSE
- secret specified under external.platform.apiKey.secretName
- secret called "vcluster-platform-api-key" in the vCluster namespace
apiKey
required object prosecretName
required string pro
SecretName is the name of the secret where the platform access key is stored. This defaults to vcluster-platform-api-key if undefined.
secretName
required string pronamespace
required string pro
Namespace defines the namespace where the access key secret should be retrieved from. If this is not equal to the namespace
where the vCluster instance is deployed, you need to make sure vCluster has access to this other namespace.
namespace
required string procreateRBAC
required boolean false pro
CreateRBAC will automatically create the necessary RBAC roles and role bindings to allow vCluster to read the secret specified
in the above namespace, if specified.
This defaults to true.
createRBAC
required boolean false proautoSleep
required object pro
AutoSleep holds configuration for automatic sleep and wakeup
autoSleep
required object proafterInactivity
required integer pro
AfterInactivity specifies after how many seconds of inactivity the virtual cluster should sleep
afterInactivity
required integer proschedule
required string pro
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 protimezone
required string pro
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 proautoWakeup
required object pro
AutoSleep holds configuration for automatic wakeup
autoWakeup
required object proschedule
required string pro
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 pro