Monitoring/manifests/grafana/database.yaml

54 lines
991 B
YAML
Raw Normal View History

2023-07-27 08:09:34 +00:00
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: grafana-db
namespace: monitoring
spec:
2024-12-21 22:01:38 +00:00
imageName: ghcr.io/cloudnative-pg/postgresql:15.3
2024-12-21 21:45:37 +00:00
instances: 3
2023-07-27 08:09:34 +00:00
storage:
size: 2Gi
2024-12-05 21:11:27 +00:00
storageClass: local-path
2023-07-27 08:09:34 +00:00
bootstrap:
initdb:
database: grafana
owner: grafana
secret:
name: grafana-db
postgresql:
pg_hba:
- host all all all md5
2024-12-05 21:21:12 +00:00
backup:
barmanObjectStore:
destinationPath: "s3://halis/cloudnativepg"
endpointURL: https://s3.halia.dev
s3Credentials:
accessKeyId:
name: s3-secret
key: AWS_ACCESS_KEY_ID
secretAccessKey:
name: s3-secret
key: AWS_SECRET_ACCESS_KEY
region:
name: s3-secret
key: AWS_REGION
wal:
compression: gzip
maxParallel: 8
2023-07-27 08:09:34 +00:00
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 500m
memory: 500Mi
monitoring:
enablePodMonitor: true