dyff-operator
by Dyff
Operator to manage deployments of Dyff CRDs.
About this chart
dyff-operator
Operator to manage deployments of Dyff CRDs.
Do not use this software unless you are an active collaborator on the associated research project.
This project is an output of an ongoing, active research project. It is published without warranty, is subject to change at any time, and has not been certified, tested, assessed, or otherwise assured of safety by any person or organization. Use at your own risk.
Installation
helm install dyff-operator oci://registry.gitlab.com/dyff/charts/dyff-operator
Removal
Now the chart can be deleted:
helm uninstall dyff-operator
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Set affinity rules. |
| args | list | ["--leader-election-id","1.dyff.io"] | Arguments to pass to the dyff-operator container. |
| command | list | ["/dyff-operator"] | Command to run for the dyff-operator container. |
| containerSecurityContext.allowPrivilegeEscalation | bool | false | |
| containerSecurityContext.capabilities.drop[0] | string | "ALL" | |
| containerSecurityContext.privileged | bool | false | |
| containerSecurityContext.readOnlyRootFilesystem | bool | true | |
| containerSecurityContext.runAsGroup | int | 1001 | |
| containerSecurityContext.runAsNonRoot | bool | true | |
| containerSecurityContext.runAsUser | int | 1001 | |
| crds.enabled | bool | true | Enable CRDs. |
| evaluations.client.activeDeadlineHeadroomSeconds | int | 3600 | Set how long an evaluation client pod may run beyond the evaluation's own totalTimeoutSeconds before it is terminated. This is a backstop for a client that fails to honour its own timeout, so it has to cover everything that happens before that timeout starts counting: image pull, dataset download, and counting any existing output. Raise it if large datasets are being evaluated; the value applies to every evaluation, not one of them. |
| extraEnvVarsConfigMap | object | {} | Set environment variables in the dyff-operator Deployment via ConfigMap. |
| extraEnvVarsSecret | object | {} | Set environment variables in the dyff-operator Deployment via Secret. |
| fullnameOverride | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | Set the pull policy. |
| image.repository | string | "registry.gitlab.com/dyff/dyff-operator" | Set the repository to pull an image from. |
| image.tag | string | "" | Override the image tag whose default is the chart appVersion. |
| image.workflows.evaluationClient | string | "registry.gitlab.com/dyff/workflows/evaluation-client:0.5.8" | Set evaluations client image |
| image.workflows.fetchModel | string | "registry.gitlab.com/dyff/workflows/fetch-model:0.1.3" | Set fetch model image |
| image.workflows.runReport | string | "registry.gitlab.com/dyff/workflows/run-report:0.9.0" | Set reports run image |
| image.workflows.storageTransfer | string | "registry.gitlab.com/dyff/workflows/storage-transfer:0.3.6" | Set storage transfer image |
| image.workflows.verifyEvaluationOutput | string | "registry.gitlab.com/dyff/workflows/verify-evaluation-output:0.2.3" | Set evaluations verification image |
| imagePullSecrets | list | [] | Set image to pull from private registry. |
| inferenceSessions.metrics.enabled | bool | true | Annotate inference pods that serve Prometheus metrics so that Prometheus scrapes them. |
| inferenceSessions.metrics.imageNames | list | ["vllm-runner"] | Images whose inference pods serve Prometheus metrics at /metrics on port 8000. An entry containing "/" must equal the image repository (the reference without tag or digest); any other entry must equal its last path component. The InferenceSession does not record the runner kind, so the image is the only signal. Pods that do not serve metrics must not be listed: they would show up as down targets. |
| inferenceSessions.metrics.prometheusNamespace | string | "prometheus" | Namespace the Prometheus server runs in. The NetworkPolicy of a Restricted session lets the server pods of the prometheus-community prometheus chart in this namespace (app.kubernetes.io/name=prometheus, app.kubernetes.io/component=server) connect to port 8000. Leave empty to add no such rule; Restricted sessions are then not annotated. |
| livenessProbe.httpGet.path | string | "/healthz" | Set livenessProbe path. |
| livenessProbe.httpGet.port | int | 8081 | Set livenessProbe port. |
| livenessProbe.initialDelaySeconds | int | 15 | Set how soon livenessProbe should wait before performing first probe. |
| livenessProbe.periodSeconds | int | 20 | Set how often the livenessProbe should check. |
| managedNamespaces | list | ["workflows"] | The namespaces where the operator will have permission to manage resources. |
| metrics.enabled | bool | true | Serve controller-runtime metrics and annotate the pod so that a Prometheus using conventional prometheus.io/* pod discovery scrapes it. |
| metrics.path | string | "/metrics" | Path the metrics endpoint serves on. |
| metrics.port | int | 8080 | |
| nameOverride | string | "" | |
| nodeSelector | object | {} | Set the node labels you want the target node to have. |
| platform | object | {} | Platform compute/scheduling configuration (optional). See examples/platform-gcp.yaml for schema and usage. platform.config.runnerImagePolicy restricts which images InferenceSessions may run: allowedImages is an exact-match list of image references, and exemptHosts (e.g. the internal Dyff registry) bypasses the check. Omitting runnerImagePolicy disables enforcement. Removing an image from allowedImages revokes it: running sessions using it are torn down on the next reconcile. platform.config.untrustedWorkloadPlacement adds nodeSelector and tolerations to the pods that run untrusted code (Analysis and Report run steps and InferenceSessions), and with onePodPerNode keeps them on separate nodes. If the dedicated nodes are not in every zone, list theirs in zones: the download steps, which fill the volumes those pods mount, are kept to those zones. |
| podAnnotations | object | {} | Set annotations for pods. |
| podLabels | object | {} | Set labels for pods. |
| podSecurityContext.fsGroup | int | 1001 | Define the filesystem group ID that owns the volume's files and directories. |
| rbac.clusterScopedVolumes | bool | false | Grant cluster-scoped PersistentVolume permissions. Required by storage mount providers that create PersistentVolumes, such as s3files. The rest of the operator's permissions are bound per managed namespace, which cannot cover a cluster-scoped resource. |
| readinessProbe.httpGet.path | string | "/readyz" | Set readinessProbe path. |
| readinessProbe.httpGet.port | int | 8081 | Set readinessProbe port. |
| readinessProbe.initialDelaySeconds | int | 5 | Set how soon readinessProbe should wait before performing first probe. |
| readinessProbe.periodSeconds | int | 10 | Set how often the readinessProbe should check. |
| replicaCount | int | 1 | Set the number of replicas to deploy. |
| reports.activeDeadlineSeconds | int | 86400 | Set amount of time job will be available before shutting down. |
| reports.runtimeClassName | string | nil | Set runtimeClassName. If you want an alternative runtime class, uncomment the runtimeClassName and set it to the runtime class of your choice. |
| reports.storageClassName | string | nil | Set the StorageClass for the volumes Analysis and Report workflows create. Leave null to use the cluster default. With runtimeClassName set, it must be set together with transferRuntimeClassName. |
| reports.transferRuntimeClassName | string | nil | Set runtimeClassName for the download and upload steps of Analysis and Report workflows, which share an RWO volume with the run step. Requires runtimeClassName, and must be set together with storageClassName. |
| resources | object | {} | Set container requests and limits for different resources like CPU or memory (essential for production workloads). |
| security | object | {"inferenceSessionLabel":null,"untrustedWorkloadRuntimeClassName":null} | Security-related settings |
| security.inferenceSessionLabel | string | nil | Label to select NetworkPolicy |
| security.untrustedWorkloadRuntimeClassName | string | nil | The value of runtimeClassName to set for Pods that execute untrusted code Should be set in production deployments. |
| serviceAccount.annotations | object | {} | Annotations to add to the service account. |
| serviceAccount.automount | bool | true | Chose to automatically mount a ServiceAccount's API credentials. |
| serviceAccount.create | bool | true | Specify if a service account should be created. |
| serviceAccount.name | string | "" | If not set and create is true, a name is generated using the fullname template. |
| storage.backend | string | "s3" | |
| storage.s3.accessKey | string | "" | S3 access key. |
| storage.s3.backendClass | string | "dyff.storage.backend.s3.storage.S3StorageBackend" | S3 storage backend class to use. |
| storage.s3.endpoint | string | "" | External S3 endpoint URL reachable from outside the network. |
| storage.s3.secretKey | string | "" | S3 secret key. |
| storage.urls.datasets | string | "s3://dyff/datasets" | Bucket URL where datasets will be stored. |
| storage.urls.measurements | string | "s3://dyff/measurements" | Bucket URL where measurements will be stored. |
| storage.urls.models | string | "s3://dyff/models" | Bucket URL where models will be stored. |
| storage.urls.modules | string | "s3://dyff/modules" | Bucket URL where modules will be stored. |
| storage.urls.outputs | string | "s3://dyff/outputs" | Bucket URL where outputs will be stored. |
| storage.urls.reports | string | "s3://dyff/reports" | Bucket URL where reports will be stored. |
| storage.urls.safetycases | string | "s3://dyff/safetycases" | Bucket URL where safetycases will be stored. |
| tolerations | list | [] | Set the scheduler to schedule pods with matching taints. |
| volumeMounts | list | [] | Set additional volumeMounts on the output Deployment definition. |
| volumes | list | [] | Set additional volumes on the output Deployment definition. |
License
Copyright 2024 UL Research Institutes.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Deploy dyff-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dyff-operator 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 chartdyff-operator is pinned at v0.24.23 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