Fixup for pgsql not liking mounts
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
7c5cd842de
commit
cb4f55cfb3
2 changed files with 43 additions and 0 deletions
16
kustomized-helms/pg/kustomization.yaml
Normal file
16
kustomized-helms/pg/kustomization.yaml
Normal 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
|
27
kustomized-helms/pg/statefulset.yaml
Normal file
27
kustomized-helms/pg/statefulset.yaml
Normal 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"
|
Loading…
Add table
Reference in a new issue