feat(grafana): provision new DB
All checks were successful
Renovate / renovate (push) Successful in 38s

This commit is contained in:
Peter 2024-08-20 18:16:47 +02:00
parent 2a7240b3f6
commit ebc2636693
Signed by: prskr
GPG key ID: F56BED6903BC5E37
3 changed files with 23 additions and 0 deletions

View file

@ -7,6 +7,8 @@ resources:
- resources/secret.grafana-admin.yaml
- resources/secret.auth.yaml
- resources/secret.db.yaml
- resources/db/db.yaml
- resources/db/user.yaml
- resources/http_routes.grafana.yaml
helmCharts:

View file

@ -0,0 +1,8 @@
---
apiVersion: db.movetokube.com/v1alpha1
kind: Postgres
metadata:
name: grafana
spec:
database: grafana
dropOnDelete: false

View file

@ -0,0 +1,13 @@
---
apiVersion: db.movetokube.com/v1alpha1
kind: PostgresUser
metadata:
name: grafana
spec:
role: grafana
database: grafana
secretName: db-credentials
privileges: OWNER
secretTemplate:
GF_DB_USER: "{{.Role}}"
GF_DB_PASSWORD: "{{.Password}}"