feat(vaultwarden): provision new DB
All checks were successful
Renovate / renovate (push) Successful in 35s
All checks were successful
Renovate / renovate (push) Successful in 35s
This commit is contained in:
parent
c3f2a1b6cd
commit
4d8204a524
4 changed files with 23 additions and 1 deletions
|
@ -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"
|
|
@ -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"
|
||||
|
|
8
vaultwarden/resources/db/db.yaml
Normal file
8
vaultwarden/resources/db/db.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
apiVersion: db.movetokube.com/v1alpha1
|
||||
kind: Postgres
|
||||
metadata:
|
||||
name: vaultwarden
|
||||
spec:
|
||||
database: vaultwarden
|
||||
dropOnDelete: false
|
12
vaultwarden/resources/db/user.yaml
Normal file
12
vaultwarden/resources/db/user.yaml
Normal 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"
|
Loading…
Reference in a new issue