69 lines
2.0 KiB
YAML
69 lines
2.0 KiB
YAML
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:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: kubernetes.io/arch
|
|
operator: In
|
|
values:
|
|
- amd64
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- topologyKey: {{ .Values.topologyKey }}
|
|
labelSelector:
|
|
matchLabels:
|
|
postgres-operator.crunchydata.com/cluster: harbor
|
|
postgres-operator.crunchydata.com/instance-set: postgres
|
|
backups:
|
|
pgbackrest:
|
|
global:
|
|
repo1-retention-full: "1"
|
|
repo1-retention-full-type: time
|
|
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
|
|
repos:
|
|
- name: repo1
|
|
schedules:
|
|
full: "0 5 31 2 *"
|
|
volume:
|
|
volumeClaimSpec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 100Mi
|