init
This commit is contained in:
47
3.zalando/baseCluster.yaml
Normal file
47
3.zalando/baseCluster.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
kind: "postgresql"
|
||||
apiVersion: "acid.zalan.do/v1"
|
||||
metadata:
|
||||
name: "rm-psql"
|
||||
labels:
|
||||
team: rm
|
||||
app: rm-pgsql
|
||||
resource-group: rm-pgsql
|
||||
spec:
|
||||
teamId: "rm"
|
||||
dockerImage: ghcr.io/zalando/spilo-16:3.2-p2
|
||||
numberOfInstances: 2
|
||||
spiloRunAsUser: 101
|
||||
spiloRunAsGroup: 103
|
||||
spiloFSGroup: 103
|
||||
postgresql:
|
||||
version: "16"
|
||||
parameters:
|
||||
hot_standby_feedback: "on"
|
||||
max_standby_archive_delay: 300s
|
||||
max_standby_streaming_delay: 300s
|
||||
max_connections: "300"
|
||||
log_rotation_size: '1024000'
|
||||
log_min_duration_statement: '1000'
|
||||
volume:
|
||||
size: "5Gi"
|
||||
storageClass: "longhorn"
|
||||
users:
|
||||
rmu:
|
||||
- superuser
|
||||
- createdb
|
||||
preparedDatabases:
|
||||
rm:
|
||||
defaultUsers: true
|
||||
patroni:
|
||||
pg_hba:
|
||||
- local all all trust
|
||||
- host all all 0.0.0.0/0 md5
|
||||
- host all all ::1/128 md5
|
||||
resources:
|
||||
requests:
|
||||
cpu: "0.4"
|
||||
memory: "500Mi"
|
||||
limits:
|
||||
cpu: "0.8"
|
||||
memory: "1Gi"
|
||||
---
|
Reference in New Issue
Block a user