feat(ente): provision new DB
All checks were successful
Renovate / renovate (push) Successful in 37s
All checks were successful
Renovate / renovate (push) Successful in 37s
This commit is contained in:
parent
aaa2c3a497
commit
21dfe900f2
4 changed files with 21 additions and 1 deletions
|
@ -9,4 +9,4 @@ spec:
|
|||
secretName: coder-db-credentials
|
||||
privileges: OWNER
|
||||
secretTemplate: # Output secrets can be customized using standard Go templates
|
||||
PQ_URL: "postgresql://{{.Role}}:{{.Password}}@app-cluster-pooler-rw.postgres.svc:5432/{{.Database}}?sslmode=require&search_path=coder"
|
||||
PQ_URL: "postgresql://{{.Role}}:{{.Password}}@{{.Host}}:5432/{{.Database}}?sslmode=require&search_path=coder"
|
|
@ -23,6 +23,8 @@ labels:
|
|||
|
||||
resources:
|
||||
- resources/namespace.yaml
|
||||
- resources/museum/db/db.yaml
|
||||
- resources/museum/db/user.yaml
|
||||
- resources/museum/deployment.yaml
|
||||
- resources/museum/service.yaml
|
||||
- resources/photos/deployment.yaml
|
||||
|
|
8
ente/resources/museum/db/db.yaml
Normal file
8
ente/resources/museum/db/db.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
apiVersion: db.movetokube.com/v1alpha1
|
||||
kind: Postgres
|
||||
metadata:
|
||||
name: ente
|
||||
spec:
|
||||
database: ente
|
||||
dropOnDelete: false
|
10
ente/resources/museum/db/user.yaml
Normal file
10
ente/resources/museum/db/user.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
apiVersion: db.movetokube.com/v1alpha1
|
||||
kind: PostgresUser
|
||||
metadata:
|
||||
name: ente
|
||||
spec:
|
||||
role: ente
|
||||
database: ente-ente
|
||||
secretName: ente-db-credentials
|
||||
privileges: OWNER
|
Loading…
Reference in a new issue