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

This commit is contained in:
Peter 2024-08-15 15:06:37 +02:00
parent e1d949b5a5
commit 1e612bc89d
Signed by: prskr
GPG key ID: F56BED6903BC5E37
3 changed files with 22 additions and 0 deletions

View file

@ -16,6 +16,8 @@ labels:
resources: resources:
- "resources/namespace.yaml" - "resources/namespace.yaml"
- "resources/db/db.yaml"
- "resources/db/user.yaml"
- "resources/deployment.yaml" - "resources/deployment.yaml"
- "resources/service.yaml" - "resources/service.yaml"
- "resources/http_routes.yaml" - "resources/http_routes.yaml"

View file

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

View file

@ -0,0 +1,12 @@
---
apiVersion: db.movetokube.com/v1alpha1
kind: PostgresUser
metadata:
name: hedgedoc
spec:
role: hedgedoc
database: hedgedoc
secretName: db-credentials
privileges: OWNER
secretTemplate:
PQ_URL: "postgresql://{{.Role}}:{{.Password}}@app-cluster-pooler-rw.postgres.svc:5432/{{.Database}}?sslmode=require"