nextcloud / helm

A community maintained helm chart for deploying Nextcloud on Kubernetes.
GNU Affero General Public License v3.0
330 stars 268 forks source link

PostgreSQL support #168

Closed Brice187 closed 1 year ago

Brice187 commented 2 years ago

Can not get postgresql to work with this chart. Can someone provide a minimal example values.yaml?

tvories commented 2 years ago

You can see my setup here that includes postgres config:

https://github.com/tvories/k8s-gitops/blob/main/cluster/apps/home/nextcloud/helm-release.yaml

Brice187 commented 2 years ago

okay, so you are storing you *config.php on the pvc instead of configuring it in the helm-chart?

tvories commented 2 years ago

Yes, mostly because I copied over my setup from an older deployment so I had the config.php already setup in there.

jessebot commented 1 year ago

For any current users looking for help, you can check out the Database Configuration section of the README.

Here's what I personally do in my values.yaml:

# you must set this to false to use postgresql
internalDatabase:
  enabled: false

##
## External database configuration
##
externalDatabase:
  enabled: true

  ## Supported database engines: mysql or postgresql
  type: postgresql

  ## Database host
  host: localhost:5432

  ## Database user only needed if you don't use existingSecret below
  # user: nextcloud

  ## Database password only needed if you don't use existingSecret below
  # password:

  ## Database name
  database: nextcloud

  ## Use a existing secret
  existingSecret:
    enabled: true
    secretName: nextcloud-pgsql-credentials
    usernameKey: username
    passwordKey: nextcloudPassword

I'm now going to close this due to inactivity since 2021, and then #227 and #359 being merged. If you still need help with general usage in the current version of the nextcloud helm chart, please start a discussion, and if something is broken (not working as described in the docs/values.yaml), then please submit a new issue (if you know what's wrong, also please feel free to submit a PR).