Add the backup command and fix the sync issue maybe
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
890eeece14
commit
779de2cdb1
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,8 @@ kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: pg4nc-postgres
|
name: pg4nc-postgres
|
||||||
namespace: nextcloud
|
namespace: nextcloud
|
||||||
|
annotations:
|
||||||
|
k8up.io/backupcommand: /usr/bin/pg_dumpall -U nextcloud
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
|
@ -12,7 +14,7 @@ spec:
|
||||||
- name: PGDATA
|
- name: PGDATA
|
||||||
$patch: delete
|
$patch: delete
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 0
|
$patch: delete
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
|
|
Loading…
Add table
Reference in a new issue