Cut Grafana PostgreSQL over to CloudNativePG
This commit is contained in:
1 parent
065a0b0953
commit
9d54a7f1e0
5 files changed
+5
-45
No files matched your search
@@ -20,7 +20,7 @@ patches:
|
||||
env:
|
||||
- {name: BACKUP_TARGET, value: grafana}
|
||||
- {name: BACKUP_MODE, value: database}
|
||||
- {name: PGHOST, value: postgresql}
|
||||
- {name: PGHOST, value: grafana-postgresql-rw}
|
||||
- name: PGUSER
|
||||
valueFrom: {secretKeyRef: {name: grafana-postgresql, key: USERDB_USER}}
|
||||
- name: PGDATABASE
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
settings:
|
||||
existingSecret: grafana-postgresql
|
||||
superuser:
|
||||
secretKey: POSTGRES_USER
|
||||
superuserPassword:
|
||||
secretKey: POSTGRES_PASSWORD
|
||||
|
||||
userDatabase:
|
||||
existingSecret: grafana-postgresql
|
||||
name:
|
||||
secretKey: USERDB_NAME
|
||||
user:
|
||||
secretKey: USERDB_USER
|
||||
password:
|
||||
secretKey: USERDB_PASSWORD
|
||||
|
||||
storage:
|
||||
requestedSize: 5Gi
|
||||
className: rook-ceph-block
|
||||
persistentVolumeClaimRetentionPolicy:
|
||||
whenDeleted: Retain
|
||||
whenScaled: Retain
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 512Mi
|
||||
@@ -58,7 +58,7 @@ grafana.ini:
|
||||
startTLS_policy: MandatoryStartTLS
|
||||
database:
|
||||
type: postgres
|
||||
host: postgresql.grafana.svc.cluster.local
|
||||
host: grafana-postgresql-rw.grafana.svc.cluster.local
|
||||
name: grafana
|
||||
user: grafana
|
||||
auth:
|
||||
|
||||
@@ -5,18 +5,8 @@ metadata:
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: grafana
|
||||
sources:
|
||||
- repoURL: https://groundhog2k.github.io/helm-charts/
|
||||
chart: postgres
|
||||
targetRevision: 1.5.14
|
||||
helm:
|
||||
releaseName: postgresql
|
||||
valueFiles:
|
||||
- $values/apps/grafana-postgresql/values.yaml
|
||||
- repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
|
||||
targetRevision: main
|
||||
ref: values
|
||||
- repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
|
||||
source:
|
||||
repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
|
||||
targetRevision: main
|
||||
path: apps/grafana-postgresql/cluster
|
||||
destination:
|
||||
@@ -25,7 +15,7 @@ spec:
|
||||
syncPolicy:
|
||||
automated:
|
||||
enabled: true
|
||||
prune: false
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
@@ -7,7 +7,6 @@ spec:
|
||||
description: Grafana and its cluster-specific dashboards
|
||||
sourceRepos:
|
||||
- https://grafana-community.github.io/helm-charts
|
||||
- https://groundhog2k.github.io/helm-charts/
|
||||
- https://code.brunner.ninja/feedc0de/homelab-gitops.git
|
||||
destinations:
|
||||
- namespace: default
|
||||
@@ -30,8 +29,6 @@ spec:
|
||||
kind: PersistentVolumeClaim
|
||||
- group: apps
|
||||
kind: Deployment
|
||||
- group: apps
|
||||
kind: StatefulSet
|
||||
- group: postgresql.cnpg.io
|
||||
kind: Cluster
|
||||
- group: networking.k8s.io
|
||||
|
||||
Reference in new issue
Block a user