2022-12-13 20:18:42 +00:00
|
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
|
|
kind: Cluster
|
|
|
|
metadata:
|
|
|
|
name: homeassistant
|
|
|
|
namespace: homeassistant
|
|
|
|
spec:
|
|
|
|
instances: 1
|
|
|
|
imageName: ghcr.io/cloudnative-pg/postgresql:15
|
|
|
|
|
|
|
|
bootstrap:
|
2023-02-13 15:37:57 +00:00
|
|
|
recovery:
|
2023-02-13 15:48:40 +00:00
|
|
|
source: homeassistant
|
2022-12-13 20:18:42 +00:00
|
|
|
|
|
|
|
backup:
|
|
|
|
barmanObjectStore:
|
2024-01-16 13:10:57 +00:00
|
|
|
destinationPath: "s3://homeassistant-backup/"
|
|
|
|
endpointURL: "http://s3-minio.s3.svc.cluster.local:9000"
|
2022-12-13 20:18:42 +00:00
|
|
|
s3Credentials:
|
|
|
|
accessKeyId:
|
|
|
|
name: bucket
|
|
|
|
key: accesskey
|
|
|
|
secretAccessKey:
|
|
|
|
name: bucket
|
|
|
|
key: secretkey
|
|
|
|
|
|
|
|
storage:
|
|
|
|
size: 10Gi
|
|
|
|
|
|
|
|
externalClusters:
|
|
|
|
- name: homeassistant
|
2023-02-13 15:37:57 +00:00
|
|
|
barmanObjectStore:
|
2024-01-16 13:10:57 +00:00
|
|
|
destinationPath: "s3://homeassistant-backup/"
|
|
|
|
endpointURL: "http://s3-minio.s3.svc.cluster.local:9000"
|
2023-02-13 15:37:57 +00:00
|
|
|
s3Credentials:
|
|
|
|
accessKeyId:
|
|
|
|
name: bucket
|
|
|
|
key: accesskey
|
|
|
|
secretAccessKey:
|
|
|
|
name: bucket
|
|
|
|
key: secretkey
|
|
|
|
wal:
|
|
|
|
maxParallel: 8
|
|
|
|
|
2022-12-14 09:16:32 +00:00
|
|
|
---
|
|
|
|
apiVersion: postgresql.cnpg.io/v1
|
|
|
|
kind: ScheduledBackup
|
|
|
|
metadata:
|
|
|
|
name: homeassistant-db-backup
|
|
|
|
namespace: homeassistant
|
|
|
|
spec:
|
|
|
|
schedule: "0 0 0 * * *"
|
|
|
|
backupOwnerReference: self
|
|
|
|
cluster:
|
2024-01-16 13:10:57 +00:00
|
|
|
name: homeassistant
|