-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcluster-example.yaml
49 lines (49 loc) · 1.73 KB
/
cluster-example.yaml
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
39
40
41
42
43
44
45
46
47
48
49
# Example of PostgreSQL cluster
apiVersion: postgresql.k8s.enterprisedb.io/v1
kind: Cluster
metadata:
name: cluster-example
annotations:
"k8s.enterprisedb.io/addons": '["external-backup-adapter-cluster"]'
"k8s.enterprisedb.io/externalBackupAdapterClusterConfig": |-
electedResourcesDecorators:
- key: "kasten-enterprisedb.io/elected"
metadataType: "label"
value: "true"
excludedResourcesDecorators:
- key: "kasten-enterprisedb.io/excluded"
metadataType: "label"
value: "true"
- key: "kasten-enterprisedb.io/excluded-reason"
metadataType: "annotation"
value: "Not necessary for backup"
backupInstanceDecorators:
- key: "kasten-enterprisedb.io/hasHooks"
metadataType: "label"
value: "true"
- key: "kanister.kasten.io/blueprint"
metadataType: "annotation"
value: "edb-hooks"
preBackupHookConfiguration:
container:
key: "kasten-enterprisedb.io/pre-backup-container"
command:
key: "kasten-enterprisedb.io/pre-backup-command"
onError:
key: "kasten-enterprisedb.io/pre-backup-on-error"
postBackupHookConfiguration:
container:
key: "kasten-enterprisedb.io/post-backup-container"
command:
key: "kasten-enterprisedb.io/post-backup-command"
spec:
instances: 3
# Example of rolling update strategy:
# - unsupervised: automated update of the primary once all
# replicas have been upgraded (default)
# - supervised: requires manual supervision to perform
# the switchover of the primary
primaryUpdateStrategy: unsupervised
# Require 1Gi of space
storage:
size: 1Gi