Begin add psql
This commit is contained in:
parent
cd99e4475c
commit
7566dec241
3 changed files with 37 additions and 0 deletions
17
postgresql_cluster/k8s-psql.yaml
Normal file
17
postgresql_cluster/k8s-psql.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
apiVersion: "acid.zalan.do/v1"
|
||||
kind: postgresql
|
||||
metadata:
|
||||
name: myapp-psql-cluster
|
||||
spec:
|
||||
volume:
|
||||
size: 1Gi
|
||||
numberOfInstances: 2
|
||||
users:
|
||||
psql_admin: # database owner
|
||||
- superuser
|
||||
- createdb
|
||||
psql_user: [] # role for application psql_test
|
||||
databases:
|
||||
psql_test: psql_admin # dbname: owner
|
||||
postgresql:
|
||||
version: "17"
|
Loading…
Add table
Add a link
Reference in a new issue