fix: nextcloud

This commit is contained in:
Philip Haupt
2025-05-20 22:31:07 +02:00
parent 3e1ba08f4e
commit 9f5c468d13
2 changed files with 8 additions and 23 deletions

View File

@@ -28,21 +28,6 @@ metadata:
name: nextcloud-collabora name: nextcloud-collabora
--- ---
apiVersion: v1 apiVersion: v1
data:
nextcloud-password: Y2hhbmdlbWU=
nextcloud-username: YWRtaW4=
kind: Secret
metadata:
labels:
app.kubernetes.io/instance: nextcloud
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: nextcloud
app.kubernetes.io/version: 30.0.6
helm.sh/chart: nextcloud-6.6.9
name: nextcloud
type: Opaque
---
apiVersion: v1
kind: Service kind: Service
metadata: metadata:
labels: labels:
@@ -517,11 +502,11 @@ spec:
- name: PGDATA - name: PGDATA
value: /bitnami/postgresql/data value: /bitnami/postgresql/data
- name: POSTGRES_USER - name: POSTGRES_USER
value: nextcloud value: oc_philiph
- name: POSTGRES_PASSWORD - name: POSTGRES_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
key: db-user key: db-pass
name: nextcloud name: nextcloud
- name: POSTGRES_POSTGRES_PASSWORD - name: POSTGRES_POSTGRES_PASSWORD
valueFrom: valueFrom:
@@ -553,7 +538,7 @@ spec:
command: command:
- /bin/sh - /bin/sh
- -c - -c
- exec pg_isready -U "nextcloud" -d "dbname=nextcloud" -h 127.0.0.1 -p - exec pg_isready -U "oc_philiph" -d "dbname=nextcloud" -h 127.0.0.1 -p
5432 5432
failureThreshold: 6 failureThreshold: 6
initialDelaySeconds: 30 initialDelaySeconds: 30
@@ -571,7 +556,7 @@ spec:
- -c - -c
- -e - -e
- | - |
exec pg_isready -U "nextcloud" -d "dbname=nextcloud" -h 127.0.0.1 -p 5432 exec pg_isready -U "oc_philiph" -d "dbname=nextcloud" -h 127.0.0.1 -p 5432
[ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ] [ -f /opt/bitnami/postgresql/tmp/.initialized ] || [ -f /bitnami/postgresql/.initialized ]
failureThreshold: 6 failureThreshold: 6
initialDelaySeconds: 5 initialDelaySeconds: 5

View File

@@ -453,8 +453,8 @@ postgresql:
postgresql: postgresql:
# global.postgresql.auth overrides postgresql.auth # global.postgresql.auth overrides postgresql.auth
auth: auth:
username: nextcloud username: oc_philiph
password: changeme password: ""
database: nextcloud database: nextcloud
# Name of existing secret to use for PostgreSQL credentials. # Name of existing secret to use for PostgreSQL credentials.
# auth.postgresPassword, auth.password, and auth.replicationPassword will be ignored and picked up from this secret. # auth.postgresPassword, auth.password, and auth.replicationPassword will be ignored and picked up from this secret.
@@ -464,8 +464,8 @@ postgresql:
# Names of keys in existing secret to use for PostgreSQL credentials # Names of keys in existing secret to use for PostgreSQL credentials
secretKeys: secretKeys:
adminPasswordKey: postgres-password adminPasswordKey: postgres-password
userPasswordKey: db-user userPasswordKey: db-pass
replicationPasswordKey: db-pass replicationPasswordKey: postgres-repl-pass
primary: primary:
persistence: persistence:
enabled: true enabled: true