harbor-operator/templates/postgres.yaml

69 lines
2.0 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:
2022-12-20 06:35:54 +00:00
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
2022-11-14 19:08:45 +00:00
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:
2022-12-20 06:35:54 +00:00
repo1-retention-full: "1"
2022-12-17 13:58:21 +00:00
repo1-retention-full-type: time
2022-12-20 06:35:54 +00:00
repoHost:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
jobs:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
2022-12-17 13:58:21 +00:00
repos:
- name: repo1
schedules:
full: "0 5 31 2 *"
volume:
volumeClaimSpec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi