dyff-operator

by Dyff

Helm chartv0.24.23App 0.24.23Verified publisher

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

KeyTypeDefaultDescription
affinityobject{}Set affinity rules.
argslist["--leader-election-id","1.dyff.io"]Arguments to pass to the dyff-operator container.
commandlist["/dyff-operator"]Command to run for the dyff-operator container.
containerSecurityContext.allowPrivilegeEscalationboolfalse
containerSecurityContext.capabilities.drop[0]string"ALL"
containerSecurityContext.privilegedboolfalse
containerSecurityContext.readOnlyRootFilesystembooltrue
containerSecurityContext.runAsGroupint1001
containerSecurityContext.runAsNonRootbooltrue
containerSecurityContext.runAsUserint1001
crds.enabledbooltrueEnable CRDs.
evaluations.client.activeDeadlineHeadroomSecondsint3600Set 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.
extraEnvVarsConfigMapobject{}Set environment variables in the dyff-operator Deployment via ConfigMap.
extraEnvVarsSecretobject{}Set environment variables in the dyff-operator Deployment via Secret.
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"Set the pull policy.
image.repositorystring"registry.gitlab.com/dyff/dyff-operator"Set the repository to pull an image from.
image.tagstring""Override the image tag whose default is the chart appVersion.
image.workflows.evaluationClientstring"registry.gitlab.com/dyff/workflows/evaluation-client:0.5.8"Set evaluations client image
image.workflows.fetchModelstring"registry.gitlab.com/dyff/workflows/fetch-model:0.1.3"Set fetch model image
image.workflows.runReportstring"registry.gitlab.com/dyff/workflows/run-report:0.9.0"Set reports run image
image.workflows.storageTransferstring"registry.gitlab.com/dyff/workflows/storage-transfer:0.3.6"Set storage transfer image
image.workflows.verifyEvaluationOutputstring"registry.gitlab.com/dyff/workflows/verify-evaluation-output:0.2.3"Set evaluations verification image
imagePullSecretslist[]Set image to pull from private registry.
inferenceSessions.metrics.enabledbooltrueAnnotate inference pods that serve Prometheus metrics so that Prometheus scrapes them.
inferenceSessions.metrics.imageNameslist["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.prometheusNamespacestring"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.pathstring"/healthz"Set livenessProbe path.
livenessProbe.httpGet.portint8081Set livenessProbe port.
livenessProbe.initialDelaySecondsint15Set how soon livenessProbe should wait before performing first probe.
livenessProbe.periodSecondsint20Set how often the livenessProbe should check.
managedNamespaceslist["workflows"]The namespaces where the operator will have permission to manage resources.
metrics.enabledbooltrueServe controller-runtime metrics and annotate the pod so that a Prometheus using conventional prometheus.io/* pod discovery scrapes it.
metrics.pathstring"/metrics"Path the metrics endpoint serves on.
metrics.portint8080
nameOverridestring""
nodeSelectorobject{}Set the node labels you want the target node to have.
platformobject{}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.
podAnnotationsobject{}Set annotations for pods.
podLabelsobject{}Set labels for pods.
podSecurityContext.fsGroupint1001Define the filesystem group ID that owns the volume's files and directories.
rbac.clusterScopedVolumesboolfalseGrant 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.pathstring"/readyz"Set readinessProbe path.
readinessProbe.httpGet.portint8081Set readinessProbe port.
readinessProbe.initialDelaySecondsint5Set how soon readinessProbe should wait before performing first probe.
readinessProbe.periodSecondsint10Set how often the readinessProbe should check.
replicaCountint1Set the number of replicas to deploy.
reports.activeDeadlineSecondsint86400Set amount of time job will be available before shutting down.
reports.runtimeClassNamestringnilSet runtimeClassName. If you want an alternative runtime class, uncomment the runtimeClassName and set it to the runtime class of your choice.
reports.storageClassNamestringnilSet 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.transferRuntimeClassNamestringnilSet 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.
resourcesobject{}Set container requests and limits for different resources like CPU or memory (essential for production workloads).
securityobject{"inferenceSessionLabel":null,"untrustedWorkloadRuntimeClassName":null}Security-related settings
security.inferenceSessionLabelstringnilLabel to select NetworkPolicy
security.untrustedWorkloadRuntimeClassNamestringnilThe value of runtimeClassName to set for Pods that execute untrusted code Should be set in production deployments.
serviceAccount.annotationsobject{}Annotations to add to the service account.
serviceAccount.automountbooltrueChose to automatically mount a ServiceAccount's API credentials.
serviceAccount.createbooltrueSpecify if a service account should be created.
serviceAccount.namestring""If not set and create is true, a name is generated using the fullname template.
storage.backendstring"s3"
storage.s3.accessKeystring""S3 access key.
storage.s3.backendClassstring"dyff.storage.backend.s3.storage.S3StorageBackend"S3 storage backend class to use.
storage.s3.endpointstring""External S3 endpoint URL reachable from outside the network.
storage.s3.secretKeystring""S3 secret key.
storage.urls.datasetsstring"s3://dyff/datasets"Bucket URL where datasets will be stored.
storage.urls.measurementsstring"s3://dyff/measurements"Bucket URL where measurements will be stored.
storage.urls.modelsstring"s3://dyff/models"Bucket URL where models will be stored.
storage.urls.modulesstring"s3://dyff/modules"Bucket URL where modules will be stored.
storage.urls.outputsstring"s3://dyff/outputs"Bucket URL where outputs will be stored.
storage.urls.reportsstring"s3://dyff/reports"Bucket URL where reports will be stored.
storage.urls.safetycasesstring"s3://dyff/safetycases"Bucket URL where safetycases will be stored.
tolerationslist[]Set the scheduler to schedule pods with matching taints.
volumeMountslist[]Set additional volumeMounts on the output Deployment definition.
volumeslist[]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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdyff-operator is pinned at v0.24.23 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