feat(grafana): provision new DB
All checks were successful
Renovate / renovate (push) Successful in 38s
All checks were successful
Renovate / renovate (push) Successful in 38s
This commit is contained in:
parent
2a7240b3f6
commit
ebc2636693
3 changed files with 23 additions and 0 deletions
|
@ -7,6 +7,8 @@ resources:
|
||||||
- resources/secret.grafana-admin.yaml
|
- resources/secret.grafana-admin.yaml
|
||||||
- resources/secret.auth.yaml
|
- resources/secret.auth.yaml
|
||||||
- resources/secret.db.yaml
|
- resources/secret.db.yaml
|
||||||
|
- resources/db/db.yaml
|
||||||
|
- resources/db/user.yaml
|
||||||
- resources/http_routes.grafana.yaml
|
- resources/http_routes.grafana.yaml
|
||||||
|
|
||||||
helmCharts:
|
helmCharts:
|
||||||
|
|
8
kube-prometheus/resources/db/db.yaml
Normal file
8
kube-prometheus/resources/db/db.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
apiVersion: db.movetokube.com/v1alpha1
|
||||||
|
kind: Postgres
|
||||||
|
metadata:
|
||||||
|
name: grafana
|
||||||
|
spec:
|
||||||
|
database: grafana
|
||||||
|
dropOnDelete: false
|
13
kube-prometheus/resources/db/user.yaml
Normal file
13
kube-prometheus/resources/db/user.yaml
Normal 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}}"
|
Loading…
Reference in a new issue