forked from CrunchyData/postgres-operator
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathha-ivory.yaml
More file actions
39 lines (38 loc) · 1.02 KB
/
ha-ivory.yaml
File metadata and controls
39 lines (38 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: ivory-operator.ivorysql.org/v1beta1
kind: IvoryCluster
metadata:
name: hippo-ha
spec:
image: docker.io/ivorysql/ivorysql:ubi9-5.1-5.1-1
postgresVersion: 15
instances:
- name: pgha1
replicas: 2
dataVolumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 1Gi
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
ivory-operator.ivorysql.org/cluster: hippo-ha
ivory-operator.ivorysql.org/instance-set: pgha1
backups:
pgbackrest:
image: docker.io/ivorysql/pgbackrest:ubi9-2.56-5.1-1
repos:
- name: repo1
volume:
volumeClaimSpec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 1Gi