pipeline-optimization
by seqera.io
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 invalues.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
.imageand the.dbMigrationInitContainer.imagesections to point to your container registry. - Container registry credentials under the
.global.imageCredentialssection (can be the credentials forcr.seqera.ioor 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.imageCredentialsSecretsvalue. 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) andcr.seqera.io/ai(where Seqera AI products are located). - Additional pull secrets can be defined in each
.imagesection to extend the global credentials, if that image is located in a different registry. - Image pull secrets defined in the specific
.imagesection will be added to the global ones, they won't replace them.
- The Pipeline Optimization service database connection details under the
.databasesection. - The database connection details for the Platform MySQL database under the
.platformDatabasesection. - Define appropriate resources for each component, look for
resourcessections in thevalues.yamlfile, 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:
- Download the default values file:
helm show values oci://public.cr.seqera.io/charts/pipeline-optimization --version 2.2.2 > values.yaml - Edit
values.yamlto 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. - 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
| Repository | Name | Version |
|---|---|---|
| file://../../../seqera-common | seqera-common | 3.x.x |
| oci://registry-1.docker.io/bitnamicharts | common | 2.x.x |
Values
Global: Images
| Key | Type | Default | Description |
|---|---|---|---|
| global.imageRegistry | string | "" | Container image registry applied to Platform and all subcharts. When set, this overrides component-level image.registry values |
Global
| Key | Type | Default | Description |
|---|---|---|---|
| global.imageCredentials | list | [] | Optional credentials to log in and fetch images from a private registry. These credentials are shared with all the subcharts automatically |
| global.imageCredentialsSecrets | list | [] | 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
| Key | Type | Default | Description |
|---|---|---|---|
| database.host | string | "" | Pipeline Optimization MySQL database hostname |
| database.port | int | 3306 | Pipeline Optimization MySQL database port |
| database.name | string | "" | Pipeline Optimization MySQL database name |
| database.username | string | "" | Pipeline Optimization MySQL database username |
| database.password | string | "" | Pipeline Optimization MySQL database password |
| database.existingSecretName | string | "" | 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.existingSecretKey | string | "SWELL_DB_PASSWORD" | Key in the existing Secret containing the password for the Pipeline Optimization MySQL database |
| database.dialect | string | "mysql" | Pipeline Optimization database dialect. Currently only 'mysql' is supported |
Database: TLS
| Key | Type | Default | Description |
|---|---|---|---|
| database.enableTls | bool | true | Enable TLS for the Pipeline Optimization MySQL database connection |
| database.tlsCaVerify | bool | true | Verify the CA certificate when connecting via TLS (set to false to skip verification, insecure - for development/testing only) |
| database.sslCa | string | "" | Path to a CA certificate file for server certificate verification |
| database.sslCert | string | "" | Path to a client certificate file for mutual TLS authentication |
| database.sslKey | string | "" | Path to a client key file for mutual TLS authentication |
Platform Database
| Key | Type | Default | Description |
|---|---|---|---|
| platformDatabase.host | string | "" | Platform MySQL database hostname |
| platformDatabase.port | int | 3306 | Platform MySQL database port |
| platformDatabase.name | string | "" | Platform MySQL database name |
| platformDatabase.username | string | "" | Platform MySQL database username. Can be a read-only user, since Platform Optimization does not perform write operations on the Platform database |
| platformDatabase.password | string | "" | Platform MySQL database password |
| platformDatabase.existingSecretName | string | "" | 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.existingSecretKey | string | "TOWER_DB_PASSWORD" | Key in the existing Secret containing the password for the Platform MySQL database |
Platform Database: TLS
| Key | Type | Default | Description |
|---|---|---|---|
| platformDatabase.enableTls | bool | true | Enable TLS for the Platform MySQL database connection |
| platformDatabase.tlsCaVerify | bool | true | Verify the CA certificate when connecting via TLS (set to false to skip verification, insecure - for development/testing only) |
| platformDatabase.sslCa | string | "" | Path to a CA certificate file for server certificate verification |
| platformDatabase.sslCert | string | "" | Path to a client certificate file for mutual TLS authentication |
| platformDatabase.sslKey | string | "" | Path to a client key file for mutual TLS authentication |
Image
| Key | Type | Default | Description |
|---|---|---|---|
| image.registry | string | "" | Pipeline Optimization container image registry |
| image.repository | string | "enterprise/platform/pipeline-optimization" | Pipeline Optimization container image repository |
| image.tag | string | "{{ .chart.AppVersion }}" | Pipeline Optimization container image tag. Defaults to the chart's appVersion (the appVersion field in Chart.yaml) |
| image.digest | string | "" | Pipeline Optimization container image digest in the format sha256:1234abcdef |
| image.pullPolicy | string | "IfNotPresent" | imagePullPolicy for the Pipeline Optimization container Ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images |
| image.pullSecrets | list | [] | 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
| Key | Type | Default | Description |
|---|---|---|---|
| dbMigrationInitContainer.image.registry | string | "" | Migrate DB init container image registry |
| dbMigrationInitContainer.image.repository | string | "enterprise/platform/pipeline-optimization" | Migrate DB init container image repository |
| dbMigrationInitContainer.image.tag | string | "{{ .chart.AppVersion }}" | Migrate DB init container image tag. Defaults to the chart's appVersion (the appVersion field in Chart.yaml) |
| dbMigrationInitContainer.image.digest | string | "" | Migrate DB init container image digest in the format sha256:1234abcdef |
| dbMigrationInitContainer.image.pullPolicy | string | "IfNotPresent" | imagePullPolicy for the Migrate DB init container Ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images |
| dbMigrationInitContainer.command | list | ["/opt/groundswell/bin/migrate-db.sh"] | Command to run to migrate the database schema |
| dbMigrationInitContainer.args | list | [] | Arguments to pass to the pod command |
Service
| Key | Type | Default | Description |
|---|---|---|---|
| service.type | string | "ClusterIP" | Pipeline Optimization Service type. Note: ingresses using AWS ALB require the service to be NodePort |
| service.extraServices | list | [] | Other services that should live in the Service object https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service |
| service.extraOptions | object | {} | Extra Service options to place under .spec (for example, clusterIP, loadBalancerIP, externalTrafficPolicy, externalIPs). Evaluated as a template |
Service: HTTP
| Key | Type | Default | Description |
|---|---|---|---|
| service.http.name | string | "http" | Service name to use |
| service.http.port | int | 8090 | Service port number |
| service.http.targetPort | int | 8090 | Port 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.nodePort | string | nil | Service 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartpipeline-optimization is pinned at v2.2.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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