harbor-operator/templates/postgres.yaml

41 lines
1.1 KiB
YAML
Raw Normal View History

2022-11-14 19:08:45 +00:00
apiVersion: postgres-operator.crunchydata.com/v1beta1
kind: PostgresCluster
metadata:
name: harbor
spec:
postgresVersion: 14
instances:
- name: postgres
replicas: 3
dataVolumeClaimSpec:
storageClassName: {{ .Values.storage.postgres.storageClass }}
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: {{ .Values.storage.postgres.storage }}
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: {{ .Values.topologyKey }}
labelSelector:
matchLabels:
postgres-operator.crunchydata.com/cluster: harbor
2022-12-17 13:58:21 +00:00
postgres-operator.crunchydata.com/instance-set: postgres
2022-11-14 19:08:45 +00:00
backups:
pgbackrest:
2022-12-17 13:58:21 +00:00
global:
repo1-retention-full: "0"
repo1-retention-full-type: time
repos:
- name: repo1
schedules:
full: "0 5 31 2 *"
volume:
volumeClaimSpec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi