Onboarding clusters programmatically

Learn how to set up dynamic clusters provisioning with this step-by-step tutorial

PerfectScale enables the dynamic provisioning of clusters with ease, requiring only a few simple steps. Additionally, it supports mass provisioning, making it efficient for larger deployments. In this case, PerfectScale Helm needs to be included in the set of provisioned workloads of the cluster.

  1. To provision clusters dynamically, you need the clientId and clientSecret. Follow steps 1 - 4 of the Onboarding a cluster instructions to get your clientId and clientSecret.

Onboarding the initial cluster via UI is a mandatory step. In this phase, you will be given the secrets (clientId and clientSecret) that can be reused to dynamically onboard clusters or efficiently provision multiple clusters for larger deployments.

Credentials
Credentials
  1. Add PerfectScale Helm from the following link.

  2. Set dynamic variables per the environment that will include the following values:

--set settings.clusterName= the name of your cluster. To prevent any confusion, it is recommended that unique values be utilized for the cluster name.

--set settings.clusterOptimizationPolicy is an optional parameter that allows you to specify the desirable resilience level for the cluster. These are the available values:

  • MaxSavings - maximum cost savings, the best for non-production environments

  • Balanced (default) - optimally balances cost and resiliency

  • ExtraHeadroom - the best fit for latency-sensitive environments

  • MaxHeadroom - keeps the environment above the highest spikes

If the Optimization Policy is not set, PerfectScale will automatically assign the default value Balanced.

If a custom policy is set through the exporter when installing the PerfectScale Agent, it cannot be modified in the UI afterward. You can still change the policy by upgrading the exporter with the new value, or you can return it to the default by upgrading the exporter without specifying any value (this will also enable the option to change the custom time window through the UI).

Discover more about customizing the Optimization policy here.

  1. Once the variables are identified, each cluster, provisioned with the PerfectScale Agent, will be automatically registered and transmit its data.

Last updated