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

This commit is contained in:
Peter 2024-08-15 14:23:48 +02:00
parent c3f2a1b6cd
commit 4d8204a524
Signed by: prskr
GPG key ID: F56BED6903BC5E37
4 changed files with 23 additions and 1 deletions

View file

@ -8,5 +8,5 @@ spec:
database: coder
secretName: coder-db-credentials
privileges: OWNER
secretTemplate: # Output secrets can be customized using standard Go templates
secretTemplate:
PQ_URL: "postgresql://{{.Role}}:{{.Password}}@{{.Host}}:5432/{{.Database}}?sslmode=require&search_path=coder"

View file

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

View file

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

View file

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