Monitoring/manifests/grafana/database.yaml

32 lines
456 B
YAML

apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: grafana-db
namespace: monitoring
spec:
instances: 2
storage:
size: 2Gi
storageClass: local-path
bootstrap:
initdb:
database: grafana
owner: grafana
secret:
name: grafana-db
postgresql:
pg_hba:
- host all all all md5
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 500m
memory: 500Mi