manyfold

by tina.junold

Helm chartv0.5.4App 0.154.4Verified publisher

Manyfold is a self-hosted digital asset manager for 3D print files, organising models, their files and metadata into browsable libraries.

About this chart

manyfold

Manyfold is a self-hosted digital asset manager for 3D print files, organising models, their files and metadata into browsable libraries.

Homepage: https://gitlab.com/ideaplexus/charts

Maintainers

NameEmailUrl
Tina Junold[email protected]https://ideaplexus.com

Source Code

Requirements

Kubernetes: >=1.29.0-0

RepositoryNameVersion
https://charts.ideaplexus.comcommon1.1.0

Editions

Manyfold ships two images, and edition picks between them.

solo (default)standard
Redisbuilt into the containerexternal, redis.url is required
DatabaseSQLite on the config volumePostgreSQL or MySQL/MariaDB
Needs anything else in the clusternoyes
Suitable fora single user, a first lookmore than one user, upstream's recommendation

The chart refuses to render a combination that cannot work: the standard edition without redis.url or with the sqlite3 adapter, a server adapter without database.host, or both a password and an existingSecret.

solo

Installs as it is. Everything lives on the config volume, so keep persistence.enabled:

persistence:
  enabled: true
  size: 2Gi

standard

Point it at a Redis and a database you run yourself; this chart deploys neither. Both hosts are evaluated as templates, so they can reference a release installed alongside it:

edition: standard
redis:
  url: "redis://{{ .Release.Name }}-redis-master:6379/1"
database:
  adapter: postgresql
  host: "{{ .Release.Name }}-postgresql"
  port: 5432
  name: manyfold
  username: manyfold
  password: change-me

With credentials you manage elsewhere, name the secrets instead. The chart then creates none of its own:

existingSecret: manyfold-app-secrets
existingSecretKeyBaseKey: secret-key-base
database:
  existingSecret: manyfold-db-credentials
  existingSecretPasswordKey: db-password

Libraries

A library is a directory of model files. Manyfold does not discover them, so a library is two things: the directory has to be mounted into the container, and it has to be registered in Manyfold.

Each entry needs a name and a mountPath, plus one source.

libraries:
  - name: models
    mountPath: /models
    create: true
    existingClaim: manyfold-models
  - name: archive
    mountPath: /archive
    readOnly: true
    nfs:
      server: nas.example.com
      path: /export/3d
  - name: local
    mountPath: /local
    hostPath: /srv/models

An entry without a source gets an emptyDir, which is only useful for a smoke test.

Registering a library

create: true registers that entry on start, so the library is there the first time you open the UI. Without it, the entry is only mounted and you enter its mountPath in Manyfold's "new library" form yourself.

An init container does the work, and it runs per entry:

  • the library is created, or
  • it already exists and is left alone, so a restart changes nothing, or
  • Manyfold rejects the path and the init container fails, which keeps the pod from starting rather than leaving you with a half-configured instance.

It runs as puid/pgid, not as root, because that is the user Manyfold checks the path against. Running it as root would accept a directory the application itself cannot use.

Read-only libraries

readOnly: true mounts the volume read-only, which is the natural thing to reach for with an NFS export you do not want written to. Manyfold does not support it: it requires a library path to be writable and refuses to register one that is not, whether through create or through the form. An entry that sets both create and readOnly is rejected while rendering.

So readOnly is only useful for a directory you mount for some other reason. For an actual library, mount it writable.

Secret key base

Rails signs sessions and cookies with SECRET_KEY_BASE. The chart generates one on first install and looks it up on upgrade, so it stays stable; changing it logs everyone out. Set secretKeyBase to supply your own, or existingSecret to keep it out of your values entirely.

Uploads through an Ingress

Model files are large. An ingress controller's default body size limit will reject them, so raise it:

ingress:
  enabled: true
  hostname: manyfold.example.com
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: 2048m

Replicas

replicaCount defaults to 1 and the update strategy to Recreate, so two pods never hold the same ReadWriteOnce volume during a rollout. The solo edition cannot be scaled at all: each pod would run its own Redis and its own work queue. More than one replica needs the standard edition, an external Redis and a database, and shared storage for the libraries.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity rules for the pod
argslist[]Arguments for the command
commandlist[]Command to run instead of the image entrypoint
commonAnnotationsobject{}Annotations added to every resource
commonLabelsobject{}Labels added to every resource
containerPorts.httpint3214HTTP port the application listens on
containerSecurityContext.allowPrivilegeEscalationboolfalseDisallow privilege escalation
containerSecurityContext.capabilitiesobject{"drop":["ALL"]}Linux capabilities
containerSecurityContext.enabledboolfalseEnable the container security context. Off by default: the image runs an s6 supervisor that drops to puid/pgid itself and writes to paths outside the config volume.
containerSecurityContext.readOnlyRootFilesystemboolfalseMount the root filesystem read-only
containerSecurityContext.runAsNonRootbooltrueRun as a non-root user
containerSecurityContext.runAsUserint1000User id to run as
containerSecurityContext.seccompProfileobject{"type":"RuntimeDefault"}Seccomp profile
customLivenessProbeobject{}A complete probe replacing the built-in liveness probe. Only used when livenessProbe.enabled is false.
customReadinessProbeobject{}A complete probe replacing the built-in readiness probe. Only used when readinessProbe.enabled is false.
customStartupProbeobject{}A complete probe replacing the built-in startup probe. Only used when startupProbe.enabled is false.
database.adapterstring"sqlite3"Database adapter. Use mysql2 for MariaDB. sqlite3 only makes sense with the solo edition.
database.existingSecretstring""Name of an existing secret holding the database password. Evaluated as a template.
database.existingSecretPasswordKeystring"password"Key inside that secret
database.hoststring""Database host. Evaluated as a template. Required unless the adapter is sqlite3.
database.namestring"/config/manyfold.sqlite3"Database name. With sqlite3 this is the path of the database file, which has to be on the config volume.
database.passwordstring""Database password, stored in a secret this chart creates. Mutually exclusive with database.existingSecret.
database.portstring""Database port. Left out when empty, so the adapter default applies.
database.usernamestring"manyfold"Database user
editionstring"solo"Manyfold edition, solo or standard. It selects the image and decides what else has to be configured.
existingSecretstring""Name of an existing secret holding the secret key base, instead of letting the chart manage one. Evaluated as a template.
existingSecretKeyBaseKeystring"secret-key-base"Key inside that secret
extraDeploylist[]Extra objects to deploy with the release, rendered as templates
extraEnvVarslist[]Extra environment variables
extraEnvVarsCMlist[]ConfigMaps to take environment variables from
extraEnvVarsSecretlist[]Secrets to take environment variables from
extraVolumeMountslist[]Extra volume mounts for the container
extraVolumeslist[]Extra volumes for the pod
fullnameOverridestring""Override the fully generated object names
global.defaultStorageClassstring""Global default StorageClass for Persistent Volume(s)
global.imagePullSecretslist[]Global Docker registry secret names
global.imageRegistrystring""Global Docker image registry
image.digeststring""Image digest in the form sha256:aa.... Overrides the tag when set.
image.pullPolicystring"IfNotPresent"Image pull policy
image.pullSecretslist[]Image pull secrets, as - name: my-secret
image.registrystring"docker.io"Image registry
image.repositorystring""Image repository. Empty derives it from edition: manyfold3d/manyfold-solo or manyfold3d/manyfold. Set it for a mirror or a fork.
image.tagstring""Image tag. Defaults to the chart appVersion.
ingress.annotationsobject{}Annotations for the Ingress. Uploading large model files needs a matching body size limit here.
ingress.apiVersionstring""API version, detected when empty
ingress.enabledboolfalseCreate an Ingress
ingress.extraHostslist[]Extra hosts
ingress.extraPathslist[]Extra paths on the main host
ingress.extraRuleslist[]Extra rules
ingress.extraTlslist[]Extra TLS blocks
ingress.hostnamestring"manyfold.local"Hostname
ingress.ingressClassNamestring""Ingress class name
ingress.pathstring"/"Path
ingress.pathTypestring"ImplementationSpecific"Path type
ingress.secretslist[]TLS secrets to create, each with name, key and certificate
ingress.selfSignedboolfalseUse a self-signed certificate
ingress.tlsboolfalseAdd a TLS block for the hostname, for cert-manager or a self-signed certificate
librarieslist[]Model libraries to mount. Each entry needs a name and a mountPath, plus one source: existingClaim, hostPath or nfs. Without a source an emptyDir is used, which is only useful for a smoke test. The mountPath is what you enter in Manyfold's new library form, unless the entry sets create.
livenessProbe.enabledbooltrueEnable the built-in liveness probe
livenessProbe.failureThresholdint6Consecutive failures tolerated
livenessProbe.initialDelaySecondsint0Seconds before the first check. Can stay at 0 while the startup probe is enabled.
livenessProbe.periodSecondsint10Seconds between checks
livenessProbe.successThresholdint1Consecutive successes needed after a failure
livenessProbe.timeoutSecondsint5Seconds after which a check times out
multiuserboolfalseEnable multiuser mode, which adds accounts and per-user permissions instead of an open instance
nameOverridestring""Override the chart name used to construct object names
namespaceOverridestring""Override the namespace the objects are created in
nodeSelectorobject{}Node labels the pod is scheduled on
persistence.accessModestring"ReadWriteOnce"Access mode
persistence.annotationsobject{}Annotations for the claim
persistence.enabledbooltrueUse a PersistentVolumeClaim. Without it the config volume is an emptyDir and its contents are lost on restart.
persistence.existingClaimstring""Use an existing claim instead of creating one. Evaluated as a template.
persistence.mountPathstring"/config"Mount path of the config volume
persistence.selectorobject{}Selector for the claim
persistence.sizestring"1Gi"Size of the claim
persistence.storageClassstring""StorageClass. Empty uses the cluster default.
pgidint1000Group id the application runs as
pluginsPathstring"/config/plugins"Path plugins are loaded from. Keep it on the config volume so they survive a restart.
podAnnotationsobject{}Annotations for the pods
podLabelsobject{}Labels for the pods
podSecurityContext.enabledbooltrueEnable the pod security context
podSecurityContext.fsGroupint1000Group that owns the mounted volumes. Match it to pgid.
podSecurityContext.fsGroupChangePolicystring"OnRootMismatch"When to apply fsGroup ownership
priorityClassNamestring""Priority class for the pod
puidint1000User id the application runs as, and the owner of files it writes
readinessProbe.enabledbooltrueEnable the built-in readiness probe
readinessProbe.failureThresholdint6Consecutive failures tolerated
readinessProbe.initialDelaySecondsint0Seconds before the first check
readinessProbe.periodSecondsint10Seconds between checks
readinessProbe.successThresholdint1Consecutive successes needed after a failure
readinessProbe.timeoutSecondsint5Seconds after which a check times out
redis.urlstring""Redis connection URL, f

Deploy manyfold with OpenTenant

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