Begin add psql

This commit is contained in:
Florian RICHER 2025-05-28 10:04:54 +02:00
parent cd99e4475c
commit 7566dec241
3 changed files with 37 additions and 0 deletions

View 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

View 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"

View file