Skip to content

Conversation

@jessebot
Copy link
Contributor

@jessebot jessebot commented Jan 8, 2025

Changes

  • now includes bundled subcharts for Valkey and PostgreSQL (enables them by default) new parameters:
# optionally use the bundled Bitnami Valkey subchart
# https://github.com/bitnami/charts/tree/main/bitnami/valkey
valkey:
  # -- enable the valkey (alternative to redis) subchart
  enabled: true
  auth:
    # -- you must set a password; the password generated by the valkey chart will be
    # rotated on each upgrade:
    password: ""
    # -- you can also specify the name of an existing Secret
    existingSecret: ""
    # -- key of password in existing secret
    existingSecretPasswordKey: ""
    
# optionally use the bundled Bitnami PostgreSQL subchart
# https://github.com/bitnami/charts/tree/main/bitnami/postgresql#parameters
postgresql:
  # -- if externalDatabase.enabled is true, postgresql.enabled must be false
  enabled: true
  auth:
    database: peertube_production
    username: peertube
    # you must set a password; the password generated by the postgresql chart will
    # be rotated on each upgrade:
    # https://github.com/bitnami/charts/tree/main/bitnami/postgresql#upgrade
    password: ""
    # Set the password for the "postgres" admin user
    # set this to the same value as above if you've previously installed
    # this chart and you're having problems getting peertube to connect to the DB
    # postgresPassword: ""
    # you can also specify the name of an existing Secret
    # with a key of password set to the password you want
    existingSecret: ""
persistence:
  # -- enable using a persistent volume claim
  enabled: false
  # -- annotations to apply to the persistent volume claim
  annotations: {}
  # -- access mode of the persistent volume claim, e.g. ReadWriteOnce
  accessModes: []
  # -- storage class of the persistent volume claim
  storageClassName: ""
  # -- size of the persistent volume claim
  storage: "10Gi"
  # -- use an exisitng persistent volume claim
  existingClaim: ""
  • removes the volumes and volumeMounts parameters in favor of templating them for the user, and then replaces those parameters with extraVolumes and extraVolumeMounts

@jessebot jessebot self-assigned this Jan 8, 2025
@jessebot jessebot force-pushed the fix-persistent-volumes branch from 27cac54 to 2df413e Compare January 8, 2025 07:35
@jessebot jessebot changed the title add persistent volume configuration, including existing claim Major updates to PVCs, volumes; Adds valkey/postgresql subcharts, updates image tag Jan 8, 2025
@jessebot jessebot requested a review from cloudymax January 8, 2025 08:20
@jessebot jessebot added the enhancement New feature or request label Jan 8, 2025
Copy link
Collaborator

@cloudymax cloudymax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, nice work! Big thanks for replacing all the generic-app tags with peertube. Adding the bundled charts is also a really really nice quality-of-life feature for anyone who wants to pick this up!

@jessebot jessebot merged commit 9127c47 into main Jan 8, 2025
2 checks passed
@jessebot jessebot deleted the fix-persistent-volumes branch January 8, 2025 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants