mirror of
https://github.com/nold360/hive-apps
synced 2024-09-07 17:19:00 +00:00
43 lines
959 B
YAML
43 lines
959 B
YAML
|
apiVersion: postgresql.cnpg.io/v1
|
||
|
kind: Cluster
|
||
|
metadata:
|
||
|
name: homeassistant
|
||
|
namespace: homeassistant
|
||
|
spec:
|
||
|
instances: 1
|
||
|
imageName: ghcr.io/cloudnative-pg/postgresql:15
|
||
|
|
||
|
bootstrap:
|
||
|
initdb:
|
||
|
import:
|
||
|
type: microservice
|
||
|
databases:
|
||
|
- homeassistant
|
||
|
source:
|
||
|
externalCluster: homeassistant
|
||
|
|
||
|
backup:
|
||
|
barmanObjectStore:
|
||
|
destinationPath: "s3://homeassistant-db/"
|
||
|
endpointURL: "http://minio.minio.svc.cluster.local:9000"
|
||
|
s3Credentials:
|
||
|
accessKeyId:
|
||
|
name: bucket
|
||
|
key: accesskey
|
||
|
secretAccessKey:
|
||
|
name: bucket
|
||
|
key: secretkey
|
||
|
|
||
|
storage:
|
||
|
size: 10Gi
|
||
|
|
||
|
externalClusters:
|
||
|
- name: homeassistant
|
||
|
connectionParameters:
|
||
|
host: homeassistant-postgresql.homeassistant.svc.cluster.local
|
||
|
user: homeassistant
|
||
|
dbname: nextcloud
|
||
|
password:
|
||
|
name: hass-postgres
|
||
|
key: postgresql-password
|