# yaml-language-server: $schema=./values.schema.json
image:
  repository: ghcr.io/manyfold3d/manyfold
  tag: 0.136.0@sha256:d14ca4d824755c2e86f9ecff2808140818f6f5ef5e5125d02cede2f42c87cbd6
  pullPolicy: IfNotPresent
securityContext:
  container:
    readOnlyRootFilesystem: false
    runAsNonRoot: false
    runAsUser: 0
    runAsGroup: 0
service:
  main:
    ports:
      main:
        protocol: http
        targetPort: 3214
        port: 3214
workload:
  main:
    podSpec:
      containers:
        main:
          env:
            DATABASE_ADAPTER: postgresql
            DATABASE_HOST: "{{ .Values.cnpg.main.creds.host }}"
            DATABASE_NAME: "{{ .Values.cnpg.main.database }}"
            DATABASE_USER: "{{ .Values.cnpg.main.user }}"
            DATABASE_PASSWORD:
              secretKeyRef:
                name: cnpg-main-user
                key: password
            SECRET_KEY_BASE:
              secretKeyRef:
                name: manyfold-secrets
                key: SECRET_KEY_BASE
            REDIS_URL:
              secretKeyRef:
                expandObjectName: false
                name: '{{ printf "%s-%s" .Release.Name "rediscreds" }}'
                key: url
          probes:
            readiness:
              path: /health
            liveness:
              path: /health
            startup:
              path: /health
persistence:
  libraries:
    enabled: true
    mountPath: "/libraries"
cnpg:
  main:
    enabled: true
    user: manyfold
    database: manyfold
redis:
  enabled: true
