Begin add psql
This commit is contained in:
parent
cd99e4475c
commit
7566dec241
3 changed files with 37 additions and 0 deletions
20
postgresql_cluster/README.md
Normal file
20
postgresql_cluster/README.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Project
|
||||
|
||||
## Install Operator
|
||||
|
||||
1. Add the repository
|
||||
|
||||
```console
|
||||
helm repo add postgres-operator-charts https://opensource.zalando.com/postgres-operator/charts/postgres-operator
|
||||
```
|
||||
|
||||
2. Install operator
|
||||
|
||||
```console
|
||||
helm install postgres-operator postgres-operator-charts/postgres-operator -f values.yaml
|
||||
```
|
||||
|
||||
3. Others
|
||||
|
||||
https://postgres-operator.readthedocs.io/en/latest/quickstart/#helm-chart
|
||||
|
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"
|
0
postgresql_cluster/values.yaml
Normal file
0
postgresql_cluster/values.yaml
Normal file
Loading…
Add table
Add a link
Reference in a new issue