Skip to content

Persistence block in values.yaml doesn't get applied #23

@DTX-Elliot

Description

@DTX-Elliot

I want to setup a fresh Vikunja service but with my own Postgres database, however setting vikunja.persistence.database.enabled: false does nothing, also setting the size in vikunja.persistence.data.size does not change from 2Gi. Here is my values.yaml:

vikunja:
  image:
    repository: vikunja/vikunja
  
  podSecurityContext:
    runAsUser: 0
    fsGroup: 0
  
  persistence:
    data:
      enabled: true
      size: 3Gi # DOES NOT GET APPLIED
      mountPath: /app/vikunja/files
      storageClass: longhorn
      accessMode: ReadWriteOnce
    database:
      enabled: false # DOES NOT GET APPLIED

  env:
    VIKUNJA_SERVICE_PUBLICURL: "mypublicurl"
    VIKUNJA_CORS_ENABLE: "true"
    VIKUNJA_CORS_ORIGINS: "mypublicurl"
    VIKUNJA_DATABASE_TYPE: "postgres"
    VIKUNJA_DATABASE_HOST: "vikunja-postgresql.vikunja.svc.cluster.local"
    VIKUNJA_DATABASE_DATABASE: "vikunja"
    VIKUNJA_DATABASE_USER: "vikunja"
    VIKUNJA_DATABASE_PASSWORD:
      valueFrom:
        secretKeyRef:
          name: vikunja-secrets
          key: admin-password

postgresql:
  image:
    repository: tensorchord/pgvecto-rs
    tag: pg14-v0.2.0@sha256:739cdd626151ff1f796dc95a6591b55a714f341c737e27f045019ceabf8e8c52
  global:
    security:
      allowInsecureImages: true
    postgresql:
      auth:
        existingSecret: vikunja-secrets
        secretKeys:
          adminPasswordKey: admin-password
          userPasswordKey: user-password
          replicationPasswordKey: replication-password
  primary:
    containerSecurityContext:
      readOnlyRootFilesystem: false
    resourcesPreset: large
    initdb:
      scripts:
        create-databases.sql: |
          CREATE DATABASE vikunja;

I can see in Longhorn that 3 volumes get created, the Postgres db that I want, but then 2 other Vikunja volumes, both at 2Gb and one is labelled for vikunja-database

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions