Hassio/manifests/database.yaml
Tanguy Herbron b8557ab571 feat(db): Migrate database and rework configuration
Add configuration entry for the new database paradigm, and reword the configuration pipeline to allow for better configuration maintainability and secret management.
2023-07-30 18:43:37 +02:00

32 lines
494 B
YAML

apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: homeassistant-db
namespace: home-automation
spec:
instances: 1
storage:
size: 1Gi
storageClass: flat-storage-class
bootstrap:
initdb:
database: homeassistant
owner: homeassistant
secret:
name: homeassistant-db
postgresql:
pg_hba:
- host all all all md5
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 500m
memory: 500Mi