Provision Grafana PostgreSQL on CloudNativePG

This commit is contained in:
feedc0de committed 2026-10-25 11:44:02 +01:00
1 parent 063b3da66c
commit 065a0b0953
4 files changed
+26

No files matched your search

@@ -0,0 +1,17 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: grafana-postgresql
namespace: grafana
spec:
instances: 1
imageName: ghcr.io/cloudnative-pg/postgresql:17.11-standard-trixie
bootstrap:
initdb:
database: grafana
owner: grafana
secret:
name: grafana-postgresql-bootstrap
storage:
size: 5Gi
storageClass: rook-ceph-block
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cluster.yaml
+3
View File
@@ -16,6 +16,9 @@ spec:
- repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
targetRevision: main
ref: values
- repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
targetRevision: main
path: apps/grafana-postgresql/cluster
destination:
server: https://kubernetes.default.svc
namespace: grafana
+2
View File
@@ -32,5 +32,7 @@ spec:
kind: Deployment
- group: apps
kind: StatefulSet
- group: postgresql.cnpg.io
kind: Cluster
- group: networking.k8s.io
kind: Ingress