Skip to main content

Overview

System Manager is a Kubernetes operator used to deploy and manage the SGP platform. It is responsible for deploying the SGP platform services and agents to an existing Kubernetes cluster.
System Manager configuration changes and SGP upgrades are made together with Scale engineering. Contact your Scale team before changing the configuration below. You can deploy your own agents without Scale; see Cloud Build and Deploy.

Installation

System Manager is installed as a Helm chart into the Kubernetes cluster during the deployment of the SGP platform. See your cloud provider’s corresponding deployment guide for more information.

Configuration

System Manager is configured via the system-manager-config secret in the cloud provider’s secret manager:
  • AWS: scale-egp-<workspace_id>/system-manager-config in Secrets Manager
  • GCP: system-manager-config in Secret Manager, starting with the Terraform secret_name_prefix when one is set, for example sgp-<workspace_id>-system-manager-config
  • Azure: system-manager-config in the deployment’s Key Vault
Update the secret directly or use the System Manager GUI. After the configuration is loaded, explicitly install the affected packs to render and apply their resources; saving a secret alone does not deploy changes. Startup installation is enabled by default: a restart reloads startup settings and reinstalls all packs in the desired state. To disable startup installation, set env.INIT_ON_STARTUP to "" in the System Manager Helm chart values (chart version 27.18.2 or later). Any other value, including "false" or "0", leaves it enabled. To restart System Manager:
The following AWS example selects SAML authentication. For OIDC, set authType to OIDC, samlSetupEnabled to false, and oidcSetupEnabled to true. The aws block is only present for AWS deployments; GCP and Azure deployments use equivalent gcp and azure blocks instead. baseRepository is the container registry that SGP images are pulled from, as a prefix without a URL scheme; configure the Helm chart URL separately in the sgp-helm-repository pack. On AWS and Azure, Terraform sets it to Scale’s registry, 022465994601.dkr.ecr.us-west-2.amazonaws.com, unless you override it. The GCP guide sets it to your Artifact Registry, <region>-docker.pkg.dev/<project-id>/sgp-<workspace_id>-docker-repository. deploymentURL is a hostname without https://.

Architecture

System Manager runs as a deployment in the sgp-system-manager namespace. Its GUI is accessible on port 8000.
Then navigate to http://localhost:8000 in your browser to access the GUI.

Packs

System Manager organizes services into “packs”. Each pack is a collection of resources that are deployed together. Generally packs are composed of FluxCD HelmRelease as well as other resources necessary to support a particular service. When a pack is installed, System Manager renders its resource templates and writes the resulting Kubernetes resources — namespaces, secrets, and FluxCD HelmRelease CRDs — to the cluster. FluxCD then picks up the HelmRelease CRDs and handles pulling and deploying the Helm charts.

FluxCD

System Manager offloads resource reconciliation to FluxCD. FluxCD is a tool that allows you to manage the lifecycle of your Kubernetes resources. Flux reconciles installed HelmRelease changes and manages chart installation and upgrades. System Manager configures workload drift detection in warn mode: direct workload edits are reported rather than automatically corrected, and Deployment replica counts are ignored. For more information on FluxCD, see the FluxCD documentation.

Desired state

The collection of packs that System Manager will deploy is defined in the system-manager-desired-state secret, stored with the same prefix as system-manager-config in the cloud provider’s secret manager. To modify the desired state, you can either update the secret directly or use the System Manager GUI, then explicitly install the affected packs via the System Manager GUI. Saving the desired state alone does not apply changes. When startup installation is enabled, a restart reinstalls all packs in the desired state, as described in Configuration. A sample desired state is shown below: