Created
December 2, 2025 14:53
-
-
Save dln/9f0bc82445cc50ac10b0a6cca75b00d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: postgresql.cnpg.io/v1 | |
| kind: Cluster | |
| metadata: | |
| name: grafana-db | |
| spec: | |
| postgresql: | |
| parameters: | |
| max_slot_wal_keep_size: "3GB" | |
| instances: 2 | |
| imageName: ghcr.io/cloudnative-pg/postgresql:18.1 | |
| primaryUpdateStrategy: unsupervised | |
| storage: | |
| size: 10Gi | |
| monitoring: | |
| enablePodMonitor: true | |
| bootstrap: | |
| initdb: | |
| database: grafana | |
| owner: grafana | |
| affinity: | |
| enablePodAntiAffinity: true | |
| topologyKey: kubernetes.io/hostname | |
| podAntiAffinityType: required |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment