feat(linkwarden): provision new DB
All checks were successful
Renovate / renovate (push) Successful in 30s
All checks were successful
Renovate / renovate (push) Successful in 30s
This commit is contained in:
parent
eaddde77c1
commit
362e9d7afa
3 changed files with 22 additions and 0 deletions
|
@ -15,6 +15,8 @@ images:
|
||||||
|
|
||||||
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"
|
||||||
|
|
8
linkwarden/resources/db/db.yaml
Normal file
8
linkwarden/resources/db/db.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
apiVersion: db.movetokube.com/v1alpha1
|
||||||
|
kind: Postgres
|
||||||
|
metadata:
|
||||||
|
name: linkwarden
|
||||||
|
spec:
|
||||||
|
database: linkwarden
|
||||||
|
dropOnDelete: false
|
12
linkwarden/resources/db/user.yaml
Normal file
12
linkwarden/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