Fixup for pgsql not liking mounts

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2025-06-30 11:21:51 +00:00
parent 7c5cd842de
commit cb4f55cfb3
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,16 @@
helmCharts:
- repo: https://raw.githubusercontent.com/hansehe/postgres-helm/master/helm/charts/postgres
name: postgres
releaseName: pg4nc
namespace: nextcloud
valuesInline:
environmentVariables:
POSTGRES_USER: nextcloud
POSTGRES_PASSWORD: hmj@geq1jdw7pfg8BDC
POSTGRES_DB: nextcloud
volume:
className: longhorn-single
enabled: true
patchesStrategicMerge:
- statefulset.yaml

View file

@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: pg4nc-postgres
namespace: nextcloud
spec:
template:
spec:
containers:
- name: postgres
env:
- name: PGDATA
$patch: delete
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: pg4nc-postgres
namespace: nextcloud
spec:
template:
spec:
containers:
- name: postgres
env:
- name: PGDATA
value: "/var/lib/postgresql/data/dbdata"