-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpg-cluster1.yaml
55 lines (55 loc) · 1.18 KB
/
pg-cluster1.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
50
51
52
53
54
55
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: pg-cluster1
namespace: cnpg
spec:
logLevel: info
startDelay: 10
stopDelay: 10
nodeMaintenanceWindow:
inProgress: false
reusePVC: true
smartShutdownTimeout: 10
backup:
target: prefer-standby
volumeSnapshot:
online: true
onlineConfiguration:
immediateCheckpoint: false
waitForArchive: true
snapshotOwnerReference: none
retentionPolicy: 7d
enableSuperuserAccess: false
monitoring:
disableDefaultQueries: false
enablePodMonitor: true
tls:
enabled: false
minSyncReplicas: 1
replicationSlots:
highAvailability:
enabled: true
slotPrefix: _cnpg_
synchronizeReplicas:
enabled: true
updateInterval: 30
enablePDB: true
primaryUpdateMethod: switchover
failoverDelay: 10
postgresql:
synchronous:
method: any
number: 1
imageName: ghcr.io/cloudnative-pg/postgresql:14
walStorage:
resizeInUseVolumes: true
size: 1Gi
maxSyncReplicas: 2
switchoverDelay: 3600
storage:
resizeInUseVolumes: true
size: 1Gi
primaryUpdateStrategy: unsupervised
instances: 3
description: pg-cluster1