feat(noco): provision new DB
All checks were successful
Renovate / renovate (push) Successful in 33s
All checks were successful
Renovate / renovate (push) Successful in 33s
This commit is contained in:
parent
f815d05d58
commit
450ed35607
3 changed files with 22 additions and 0 deletions
|
@ -16,6 +16,8 @@ labels:
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- resources/namespace.yaml
|
- resources/namespace.yaml
|
||||||
|
- resources/db/db.yaml
|
||||||
|
- resources/db/user.yaml
|
||||||
- resources/dragonfly.yaml
|
- resources/dragonfly.yaml
|
||||||
- resources/pvc.yaml
|
- resources/pvc.yaml
|
||||||
- resources/deployment.yaml
|
- resources/deployment.yaml
|
||||||
|
|
8
nocodb/resources/db/db.yaml
Normal file
8
nocodb/resources/db/db.yaml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
apiVersion: db.movetokube.com/v1alpha1
|
||||||
|
kind: Postgres
|
||||||
|
metadata:
|
||||||
|
name: noco
|
||||||
|
spec:
|
||||||
|
database: noco
|
||||||
|
dropOnDelete: false
|
12
nocodb/resources/db/user.yaml
Normal file
12
nocodb/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:
|
||||||
|
NC_DB_JSON: '{"client": "pg","connection": {"host": "app-cluster-pooler-rw.postgres.svc","port": 5432,"user": "{{.Role}}","password": "{{.Password}}","database": "{{.Database}}","ssl": {"ca": "-----BEGIN CERTIFICATE-----\nMIIBkjCCATigAwIBAgIQDfi4fTFY2eKrhN88nKEUDTAKBggqhkjOPQQDAjApMREw\nDwYDVQQLEwhwb3N0Z3JlczEUMBIGA1UEAxMLYXBwLWNsdXN0ZXIwHhcNMjQwODE0\nMTg0MzIzWhcNMjQxMTEyMTg0MzIzWjApMREwDwYDVQQLEwhwb3N0Z3JlczEUMBIG\nA1UEAxMLYXBwLWNsdXN0ZXIwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQotXOi\nx9tfnUaG7A6T6x5YuBgKCvBAGw7q0C0teHWRIxSaoaiD6KV21juVpAgKoZckXA8x\niZW0GUHOoAUrCV7Ao0IwQDAOBgNVHQ8BAf8EBAMCAgQwDwYDVR0TAQH/BAUwAwEB\n/zAdBgNVHQ4EFgQUuMEs3ztFClbC2agTqXkfkB1GHjkwCgYIKoZIzj0EAwIDSAAw\nRQIgK6FHhGYZ/FwxG8dDq2czVLvLCs+yozZZhNuhZBeT8v0CIQDhwRgJNeMxKtRS\nu3ziF4E4aniICEqa/To3Lvaa1cJJiQ==\n-----END CERTIFICATE-----","key": "","cert": "","rejectUnauthorized": false}}}'
|
Loading…
Reference in a new issue