Initial commit

This commit is contained in:
2025-04-13 20:34:21 +02:00
commit c9a5c09b49
4 changed files with 109 additions and 0 deletions

37
postgres.yaml Normal file
View File

@@ -0,0 +1,37 @@
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: swiss-pg
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-16.3-1
postgresVersion: 16
instances:
- name: instance1
dataVolumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 1Gi
# selector:
# matchLabels:
# pgo-postgres-cluster: postgres-operator-swiss-pg
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.51-1
repos:
- name: repo1
volume:
volumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 1Gi
users:
- name: swiss-user
databases:
- swiss
- name: swiss-test-user
databases:
- swiss-test