pipeline-optimization

by seqera.io

Helm chartv2.2.2App 0.4.15Apache-2.0Verified publisher

A Helm chart to deploy the Seqera Pipeline Optimization service (referred to as Groundswell in Platform configuration files).

About this chart

pipeline-optimization

A Helm chart to deploy the Seqera Pipeline Optimization service (referred to as Groundswell in Platform configuration files).

Some basic familiarity with Helm is assumed. If you are new to Helm, please refer to the Helm documentation. We recommend reading through the values.yaml file to understand the configuration options available for the chart. Each entry is documented with # -- comments describing its purpose and usage. Other annotations are used to automatically generate the README files and can be ignored:

  • # @section — groups related values under a heading in the generated README
  • # @default — documents a default value that is computed in the templates rather than set literally in values.yaml

Requirements and configuration

For an overview of the Seqera Pipeline Optimization service architecture and its requirements, refer to the Seqera documentation.

Note that the Seqera charts do not automatically set cr.seqera.io as the registry where to pull images from, as we want to encourage users to use their own registries to improve reliability: instructions are available to vendor the Seqera container images to your private registry. We also recommend vendoring the Seqera charts.

The required values to set in order to have a working installation are:

  • The .image and the .dbMigrationInitContainer.image sections to point to your container registry.
  • Container registry credentials under the .global.imageCredentials section (can be the credentials for cr.seqera.io or your private registry where you vendored the images to). Alternatively, to avoid storing sensitive credentials in the values file, you can create a Kubernetes Secret containing the credentials and reference it in the .global.imageCredentialsSecrets value. Refer to the Kubernetes docs to create a Kubernetes Secret to store image pull credentials.
    • These credentials will be used by all the subcharts unless overridden in the specific subchart.
    • Multiple credentials can be specified to cover different registries or repositories within the same registry, e.g. you can set credentials for cr.seqera.io/enterprise (where Platform images are located) and cr.seqera.io/ai (where Seqera AI products are located).
    • Additional pull secrets can be defined in each .image section to extend the global credentials, if that image is located in a different registry.
    • Image pull secrets defined in the specific .image section will be added to the global ones, they won't replace them.
  • The Pipeline Optimization service database connection details under the .database section.
  • The database connection details for the Platform MySQL database under the .platformDatabase section.
  • Define appropriate resources for each component, look for resources sections in the values.yaml file, sane defaults are recommended in a comment; more details here.

The Helm chart comes with several requirement checks that will validate the provided configuration before proceeding with the installation.

By default the chart selects the Platform application images defined in the appVersion field of the Chart.yaml file, currently set as 0.4.15.

When a sensitive value is required (e.g. the database password, the Seqera license key), you can either provide it directly in the values file or reference an existing Kubernetes Secret containing the value. The key names to use in the provided Secret are specified in the values file comments. Sensitive values provided as plain text by the user are always stored in a Kubernetes Secret created by the chart. When an external Secret is used instead, the chart instructs the components to read the sensitive value from the external Secret directly, without further storing copies of the sensitive value in the chart-created Secret. Refer to this example for a demonstration of how to create a Kubernetes Secret to store sensitive values.

Installing the chart

To install the chart:

  1. Download the default values file:
    helm show values oci://public.cr.seqera.io/charts/pipeline-optimization --version 2.2.2 > values.yaml
    
  2. Edit values.yaml to match your environment. We recommend removing entries whose defaults you don't need to override — this keeps your configuration file focused and easier to maintain across upgrades.
  3. Install the chart with the release name my-release:
    helm install my-release oci://public.cr.seqera.io/charts/pipeline-optimization \
      --version 2.2.2 \
      --namespace my-namespace \
      --create-namespace \
      -f values.yaml
    

For a list of available chart versions, see the chart repository: https://public.cr.seqera.io/repo/charts/pipeline-optimization

Alternative: installing from the Helm repository

Charts are also published to a traditional Helm repository. This can be useful in environments where pulling from OCI registries is restricted:

helm repo add seqeralabs https://seqeralabs.github.io/helm-charts
helm repo update
helm install my-release seqeralabs/pipeline-optimization \
  --version 2.2.2 \
  --namespace my-namespace \
  --create-namespace \
  -f values.yaml

Upgrading the chart

When upgrading between versions, please refer to the CHANGELOG.md for breaking changes and migration instructions.

Requirements

RepositoryNameVersion
file://../../../seqera-commonseqera-common3.x.x
oci://registry-1.docker.io/bitnamichartscommon2.x.x

Values

Global: Images

KeyTypeDefaultDescription
global.imageRegistrystring""Container image registry applied to Platform and all subcharts. When set, this overrides component-level image.registry values

Global

KeyTypeDefaultDescription
global.imageCredentialslist[]Optional credentials to log in and fetch images from a private registry. These credentials are shared with all the subcharts automatically
global.imageCredentialsSecretslist[]Optional list of existing Secrets containing image pull credentials to use for pulling images from private registries. These Secrets are shared with all the subcharts automatically

Database

KeyTypeDefaultDescription
database.hoststring""Pipeline Optimization MySQL database hostname
database.portint3306Pipeline Optimization MySQL database port
database.namestring""Pipeline Optimization MySQL database name
database.usernamestring""Pipeline Optimization MySQL database username
database.passwordstring""Pipeline Optimization MySQL database password
database.existingSecretNamestring""Name of an existing Secret containing credentials for the Pipeline Optimization MySQL database, as an alternative to the password field. Note: the Secret must already exist in the same namespace at the time of deployment
database.existingSecretKeystring"SWELL_DB_PASSWORD"Key in the existing Secret containing the password for the Pipeline Optimization MySQL database
database.dialectstring"mysql"Pipeline Optimization database dialect. Currently only 'mysql' is supported

Database: TLS

KeyTypeDefaultDescription
database.enableTlsbooltrueEnable TLS for the Pipeline Optimization MySQL database connection
database.tlsCaVerifybooltrueVerify the CA certificate when connecting via TLS (set to false to skip verification, insecure - for development/testing only)
database.sslCastring""Path to a CA certificate file for server certificate verification
database.sslCertstring""Path to a client certificate file for mutual TLS authentication
database.sslKeystring""Path to a client key file for mutual TLS authentication

Platform Database

KeyTypeDefaultDescription
platformDatabase.hoststring""Platform MySQL database hostname
platformDatabase.portint3306Platform MySQL database port
platformDatabase.namestring""Platform MySQL database name
platformDatabase.usernamestring""Platform MySQL database username. Can be a read-only user, since Platform Optimization does not perform write operations on the Platform database
platformDatabase.passwordstring""Platform MySQL database password
platformDatabase.existingSecretNamestring""Name of an existing Secret containing credentials for the Platform MySQL database, as an alternative to the password field. Note: the Secret must already exist in the same namespace at the time of deployment
platformDatabase.existingSecretKeystring"TOWER_DB_PASSWORD"Key in the existing Secret containing the password for the Platform MySQL database

Platform Database: TLS

KeyTypeDefaultDescription
platformDatabase.enableTlsbooltrueEnable TLS for the Platform MySQL database connection
platformDatabase.tlsCaVerifybooltrueVerify the CA certificate when connecting via TLS (set to false to skip verification, insecure - for development/testing only)
platformDatabase.sslCastring""Path to a CA certificate file for server certificate verification
platformDatabase.sslCertstring""Path to a client certificate file for mutual TLS authentication
platformDatabase.sslKeystring""Path to a client key file for mutual TLS authentication

Image

KeyTypeDefaultDescription
image.registrystring""Pipeline Optimization container image registry
image.repositorystring"enterprise/platform/pipeline-optimization"Pipeline Optimization container image repository
image.tagstring"{{ .chart.AppVersion }}"Pipeline Optimization container image tag. Defaults to the chart's appVersion (the appVersion field in Chart.yaml)
image.digeststring""Pipeline Optimization container image digest in the format sha256:1234abcdef
image.pullPolicystring"IfNotPresent"imagePullPolicy for the Pipeline Optimization container Ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
image.pullSecretslist[]List of imagePullSecrets Secrets must be created in the same namespace, for example using the .extraDeploy array Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/

DB Migration Init Container

KeyTypeDefaultDescription
dbMigrationInitContainer.image.registrystring""Migrate DB init container image registry
dbMigrationInitContainer.image.repositorystring"enterprise/platform/pipeline-optimization"Migrate DB init container image repository
dbMigrationInitContainer.image.tagstring"{{ .chart.AppVersion }}"Migrate DB init container image tag. Defaults to the chart's appVersion (the appVersion field in Chart.yaml)
dbMigrationInitContainer.image.digeststring""Migrate DB init container image digest in the format sha256:1234abcdef
dbMigrationInitContainer.image.pullPolicystring"IfNotPresent"imagePullPolicy for the Migrate DB init container Ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
dbMigrationInitContainer.commandlist["/opt/groundswell/bin/migrate-db.sh"]Command to run to migrate the database schema
dbMigrationInitContainer.argslist[]Arguments to pass to the pod command

Service

KeyTypeDefaultDescription
service.typestring"ClusterIP"Pipeline Optimization Service type. Note: ingresses using AWS ALB require the service to be NodePort
service.extraServiceslist[]Other services that should live in the Service object https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
service.extraOptionsobject{}Extra Service options to place under .spec (for example, clusterIP, loadBalancerIP, externalTrafficPolicy, externalIPs). Evaluated as a template

Service: HTTP

KeyTypeDefaultDescription
service.http.namestring"http"Service name to use
service.http.portint8090Service port number
service.http.targetPortint8090Port on the pod/container that the Service forwards traffic to (can be a number or named port, distinct from the Service's external port).
service.http.nodePortstringnilService node port, only used when service.type is Nodeport or LoadBalancer Choose port between 3

Deploy pipeline-optimization with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pipeline-optimization on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpipeline-optimization is pinned at v2.2.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply