cryosparc

by joaquinito2051

Helm chartv0.13.1App 5.0.6-r2

OSC CryoSPARC bootstrap Helm Chart

About this chart

cryosparc

OSC CryoSPARC bootstrap Helm Chart

Maintainers

NameEmailUrl
zyou

Requirements

RepositoryNameVersion
https://osc.github.io/osc-helm-charts/osc-common0.17.1

Usage

Define necessary values:

global:
  oscServiceAccount: cryosciapps
  imagePullSecret:
    password: IMAGE-PULL-PASSWORD
  nodeSelectorRole: test
  debugGroups:
    - foobar
  maintenanceGroups:
    - foo
    - bar
  ingress:
    host: cryosciapps.k8.osc.edu
    hostAlias: cryosciapps.osc.edu
  basePort: 31010
  project: PAS0710

license: xxx-xxx-xxx
admin:
  email: [email protected]
  password: qwer1234

Values

KeyDescriptionDefault
global.oscServiceAccountThe service account used by OSC deployments.The chart's release name
global.environmentThe deployment's OSC environment"production"
global.nodeSelectorRoleThe OSC node role to use with nodeSelector"webservices"
global.imagePullSecret.createCreate the image pull secrettrue
global.imagePullSecret.nameimagePullSecret name"osc-registry"
global.imagePullSecret.registryimagePullSecret registry"docker-registry.osc.edu"
global.imagePullSecret.usernameimagePullSecret username"robot$webservices-read"
global.imagePullSecret.passwordimagePullSecret password. This value will be set by OSC's Puppet. This value must be set to IMAGE-PULL-PASSWORD for CI tests.nil
global.debugGroupsGroups that debug pods[]
global.maintenanceGroupsGroups that can perform maintenance operations[]
global.auth.commonAllowGroupsBase groups allowed to login["sappstf","sysstf","{{ .Values.global.project }}"]
global.auth.allowGroupsAdditional groups allowed to login[]
global.ingress.hostIngress host.required
global.ingress.hostAliasIngress host alias.required
global.alert.receiver"sciapps"
global.basePortThe base service port. Must be unique for each CryoSPARC instancerequired
global.projectThe service projectrequired
licenseThe CryoSPARC license ID""
homeDir"{{ .Values.global.project }}"
slurmConfSlurm configuration of the cluster used for service"/etc/slurm/slurm-ascend.conf"
worker_bin_path.ascendThe CryoSPARC worker binary path for Ascend cluster"/apps/cryosparc-worker/{{ regexReplaceAll \"-r.*$\" (include \"cryosparc.imageTag\" .) \"\" }}/bin/cryosparcw"
worker_bin_path.cardinalThe CryoSPARC worker binary path for Cardinal cluster"/apps/cryosparc-worker/{{ regexReplaceAll \"-r.*$\" (include \"cryosparc.imageTag\" .) \"\" }}/bin/cryosparcw"
worker_bin_path.pitzerThe CryoSPARC worker binary path for Pitzer cluster"/apps/cryosparc-worker/{{ regexReplaceAll \"-r.*$\" (include \"cryosparc.imageTag\" .) \"\" }}/bin/cryosparcw"
image.repositoryThe CryoSPARC image URL"docker-registry.osc.edu/webservices/cryosparc"
image.tagThe CryoSPARC image tag""
image.pullPolicy"IfNotPresent"
mounts.home"/users/{{ tpl .Values.homeDir . }}/{{ tpl (include \"osc.common.serviceAccountValue\" .) . }}"
mounts.project"/fs/ess/{{ required \"Project must be provided\" .Values.global.project }}"
mounts.scratchSet to '/fs/scratch/{{ .Values.global.project }}' to enable""
mounts.rwDir{}
admin.email""
admin.password""
terminationGracePeriodSecondsPod termination grace period seconds30
nodeSelector{}
extraEnvAdditional env data[]
osc-common.oauth2-proxy.resources.limits.cpuCPU limit for OAuth2 Proxy pods1
osc-common.oauth2-proxy.resources.limits.memoryMemory limit for OAuth2 Proxy pods"512Mi"
osc-common.oauth2-proxy.resources.requests.cpuCPU request for OAuth2 Proxy pods"500m"
osc-common.oauth2-proxy.resources.requests.memoryMemory request for OAuth2 Proxy pods"256Mi"

Deploy cryosparc with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cryosparc 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 chartcryosparc is pinned at v0.13.1 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