Tanguy Herbron
b8557ab571
Add configuration entry for the new database paradigm, and reword the configuration pipeline to allow for better configuration maintainability and secret management.
32 lines
494 B
YAML
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
|