2022-12-13 20:18:42 +00:00
|
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
|
|
kind: Cluster
|
|
|
|
metadata:
|
|
|
|
name: nextcloud-db
|
|
|
|
namespace: nextcloud
|
|
|
|
spec:
|
|
|
|
instances: 1
|
|
|
|
imageName: ghcr.io/cloudnative-pg/postgresql:15
|
|
|
|
|
|
|
|
bootstrap:
|
2022-12-14 09:14:27 +00:00
|
|
|
recovery:
|
2023-02-13 15:37:57 +00:00
|
|
|
source: nextcloud-db
|
|
|
|
#
|
|
|
|
# backup:
|
|
|
|
# barmanObjectStore:
|
|
|
|
# destinationPath: "s3://nextcloud-db/"
|
|
|
|
# endpointURL: "http://minio.minio.svc.cluster.local:9000"
|
|
|
|
# s3Credentials:
|
|
|
|
# accessKeyId:
|
|
|
|
# name: bucket
|
|
|
|
# key: accesskey
|
|
|
|
# secretAccessKey:
|
|
|
|
# name: bucket
|
|
|
|
# key: secretkey
|
|
|
|
# wal:
|
|
|
|
# compression: gzip
|
|
|
|
# #encryption: AES256
|
|
|
|
# data:
|
|
|
|
# compression: gzip
|
|
|
|
# #encryption: AES256
|
|
|
|
# retentionPolicy: "90d"
|
2022-12-13 20:18:42 +00:00
|
|
|
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: "64Mi"
|
|
|
|
cpu: "50m"
|
|
|
|
limits:
|
|
|
|
memory: "1Gi"
|
|
|
|
cpu: "1"
|
|
|
|
|
|
|
|
storage:
|
|
|
|
size: 10Gi
|
|
|
|
|
|
|
|
externalClusters:
|
2023-02-13 15:37:57 +00:00
|
|
|
- name: nextcloud-db
|
2022-12-14 09:14:27 +00:00
|
|
|
barmanObjectStore:
|
|
|
|
destinationPath: "s3://nextcloud-db/"
|
|
|
|
endpointURL: "http://minio.minio.svc.cluster.local:9000"
|
|
|
|
s3Credentials:
|
|
|
|
accessKeyId:
|
|
|
|
name: bucket
|
|
|
|
key: accesskey
|
|
|
|
secretAccessKey:
|
|
|
|
name: bucket
|
|
|
|
key: secretkey
|
|
|
|
wal:
|
|
|
|
maxParallel: 8
|
|
|
|
---
|
|
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
|
|
kind: ScheduledBackup
|
|
|
|
metadata:
|
|
|
|
name: nextcloud-db-backup
|
|
|
|
namespace: nextcloud
|
|
|
|
spec:
|
2022-12-15 17:08:14 +00:00
|
|
|
schedule: "0 0 * * * *"
|
2022-12-14 09:14:27 +00:00
|
|
|
backupOwnerReference: self
|
|
|
|
cluster:
|
|
|
|
name: nextcloud-db
|