Skip to content

Instantly share code, notes, and snippets.

@JustHumanz
Created November 9, 2021 06:50
Show Gist options
  • Save JustHumanz/b0c004d580dc2ffa48b7f6642ada4736 to your computer and use it in GitHub Desktop.
Save JustHumanz/b0c004d580dc2ffa48b7f6642ada4736 to your computer and use it in GitHub Desktop.
postgres.yaml
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: hippo
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:centos8-13.4-1
postgresVersion: 13
instances:
- name: instance1
dataVolumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 1Gi
selector:
matchLabels:
alicloud-pvname: d-k1a8v33bru4fjj9xf57v
storageClassName: disk
volumeMode: Filesystem
volumeName: d-k1a8v33bru4fjj9xf57v
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:centos8-2.35-0
repos:
- name: repo1
volume:
volumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 1Gi
selector:
matchLabels:
alicloud-pvname: d-k1a8v33bru4fjj9xf57w
storageClassName: disk
volumeMode: Filesystem
volumeName: d-k1a8v33bru4fjj9xf57w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment