PerfectScale Operator

Explore the PerfectScale agent installation and upgrade management system.

The PerfectScale Operator is a Kubernetes operator that manages the installation and upgrade of PerfectScale components, including the exporter, automation agent, and other components. It is designed to reduce maintenance overhead, minimize manual work, and accelerate feature rollout across your clusters.

PerfectScale Operator

Installing PerfectScale Operator on a new cluster

When onboarding a cluster, choose one deployment method: deploy with the PerfectScale Operator or deploy with Helm. Select PerfectScale Operator option to install the operator while onboarding a cluster.

Once you have named your cluster and selected the Optimization Policy, click Get Install Command, so PerfectScale will provide you with the needed installation components.

Connect cluster

Use the following Helm command to deploy PerfectScale:

Alternatively, you can install the Operator using Guided mode. Click Guided mode to follow the 3-step installation instructions:

1

Add Helm repo

2

Deploy PerfectScale Operator

3

Apply CRD

Migration of Existing Cluster to Operator

1

Get the cluster name from the existing exporter

To get a clusterName that was passed when the exporter was first installed, run the following command:

You’ll need this exact value when creating the Agents CR.

2

Uninstall the existing agents

To uninstall agents, run the corresponding command only for the agents that are currently installed.

PerfectScale stores the credentials here:

As a result, running any of the Helm uninstall commands above will not remove the secret, so your cluster credentials stay preserved.

3

Install the Operator (pointing to the existing secret)

To install the PerfectScale Operator, run the following command:

Since secret.create=false, the operator will not create a new secret. Instead, it will use the existing secret that remained after the uninstall.

4

Create the Agents CR

Create an agents.yaml CR:

Run the following command:

Edge case - mixed managed clusters

If some agents are still managed by a standalone Helm and have not yet been removed, enabling them in the operator CR will prompt the operator to install a new Helm release. That release will then try to create or adopt perfectscale-secret, but the secret is still marked as owned by the old release (for example, perfectscale). This results in:

Resolution: before enabling an agent with installationMode: on in the CR, first uninstall its standalone Helm release. This is required because the operator manages Helm releases under different release names than the standalone installation.

Understanding PerfectScale Operator CRD

Learn more about PerfectScale Operator CRD here.

Updating PerfectScale Operator

To ensure smooth operation, it’s important to keep the PerfectScale Operator up to date.

To get started, go to Cluster Settings by clicking the gear icon next to the cluster name, then select Agents. In the Agent Management, you can check the current version of the Agent Operator and review the Release Notes for detailed information about changes and improvements. Clicking Release Notes will take you to GitHub, where you can explore full release details, including updates and assets.

Updating Agents Operator

To upgrade, click Show Update Instructions to access step-by-step guidance. The upgrade process includes two simple steps:

1

Update the Helm repository

2

Update the PerfectScale Operator version

Keeping the PerfectScale Operator updated ensures you benefit from the latest features, improvements, and overall service quality.

Upgrade modes

PerfectScale supports three upgrade modes for agents: auto, webapp, and manual.

Learn more about upgrade modes prerequisites here.

In this mode, PerfectScale Operator automatically upgrades to the latest version. The operator queries the PerfectScale settings API (/psc-settings) on every reconciliation to retrieve the latest version for the exporter and autoscaler. The version field is omitted, and the operator always upgrades to the newest release. To enable auto mode, you need to configure it in the PerfectScale Operator CRD for exporters and autoscaler.

Example:

Once auto mode is enabled, your agents are always kept up to date automatically. This ensures you have access to the latest features and fixes without interrupting operations or requiring any manual effort from your team.

Webapp

This mode offers semi-automatic upgrades, where you need to approve upgrades in the PerfectScale platform, and then the operator updates to the latest version. This approach gives your team a change-management gate while still automating the process.

To enable webapp mode, you need to configure it in the Agents Operator CRD for exporters and autoscaler.

Example:

In Cluster Settings (accessed by clicking the gear icon next to the cluster name), select Agents. Click the Update button next to a specific agent to upgrade it to the latest version.

Webbapp upgrade mode

Alternatively, you can upgrade all agents at once with a single click by selecting Update All Agents in the top-right corner, or from the global Agent section (learn more here).

Upgrade all agents

The cluster must be connected to the PerfectScale platform so the operator can receive approval actions from the web app.

Manual

This mode suits the teams that do not want to upgrade agents automatically and prefer manual agent management. To enable manual mode, you need to configure it in the PerfectScale Operator CRD for exporters and autoscaler.

When upgrading agents manually, users must explicitly set the desired version in the CRD to trigger an upgrade. The version field must specify an exact version (e.g., v1.0.0).

To check the latest available version, navigate to Cluster Settings (click the gear icon next to the cluster name) and select Agents. The available version is displayed in the Update Available/Required section.

Here’s an example of what a CRD may look like:

Last updated

Was this helpful?