Cluster Management
apiVersion: postgres-operator.crunchydata.com/v1beta1kind: PostgresClustermetadata: name: inmadbs namespace: inma-postgresqlspec: users: - name: postgres - name: devuser image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres-gis:ubi8-14.5-3.2-1 postgresVersion: 14 instances: - name: pgha1 replicas: 2 dataVolumeClaimSpec: storageClassName: 'nfs-storage-dbs' accessModes: - "ReadWriteOnce" resources: requests: storage: 100Gi affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 1 podAffinityTerm: topologyKey: kubernetes.io/hostname labelSelector: matchLabels: postgres-operator.crunchydata.com/cluster: inmadbs postgres-operator.crunchydata.com/instance-set: pgha1 nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: node-type operator: In values: - storage backups: pgbackrest: manual: options: - '--type=full' repoName: repo1 global: archive-timeout: '600' repo1-retention-full: '14' repo1-retention-full-type: time image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.40-1 repos: - name: repo1 schedules: full: "0 1 * * *" volume: volumeClaimSpec: storageClassName: 'nfs-backup-dbs' accessModes: - "ReadWriteOnce" resources: requests: storage: 100Gi proxy: pgBouncer: image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:ubi8-1.17-1 replicas: 2 affinity: podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 1 podAffinityTerm: topologyKey: kubernetes.io/hostname labelSelector: matchLabels: postgres-operator.crunchydata.com/cluster: inmadbs postgres-operator.crunchydata.com/role: pgbouncer patroni: dynamicConfiguration: postgresql: parameters: max_connections: 1000 shared_preload_libraries: timescaledb,pg_cron