kube-cascade/joplin/db.yaml

41 lines
1.2 KiB
YAML
Raw Normal View History

2023-08-11 00:51:12 +00:00
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: joplin
namespace: joplin
spec:
image: registry.developers.crunchydata.com/crunchydata/crunchy-postgres:ubi8-14.6-2
postgresVersion: 14
instances:
- replicas: 2
dataVolumeClaimSpec:
storageClassName: nfs
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 2Gi
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
postgres-operator.crunchydata.com/cluster: keycloakdb
postgres-operator.crunchydata.com/instance-set: "00"
backups:
pgbackrest:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgbackrest:ubi8-2.41-2
repos:
- name: repo1
volume:
volumeClaimSpec:
storageClassName: nfs
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 4Gi