forked from BigKAA/youtube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
02-cluster.yaml
92 lines (92 loc) · 1.94 KB
/
02-cluster.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
apiVersion: crunchydata.com/v1
kind: Pgcluster
metadata:
annotations:
current-primary: base
labels:
crunchy-pgha-scope: base
deployment-name: base
name: base
pg-cluster: base
pgo-version: 4.6.2
pgouser: admin
name: base
namespace: pgo
spec:
BackrestStorage:
accessmode: ReadWriteMany
name: ""
size: 10G
storageclass: "managed-nfs-storage"
storagetype: dynamic
supplementalgroups: ""
PrimaryStorage:
accessmode: ReadWriteMany
matchLabels: "storage=basemain"
name: base
size: 8G
storageclass: ""
storagetype: create
supplementalgroups: ""
ReplicaStorage:
accessmode: ReadWriteMany
matchLabels: "storage=baserepl"
name: ""
size: 8G
storageclass: ""
storagetype: create
supplementalgroups: ""
annotations: {}
ccpimage: crunchy-postgres-ha
ccpimageprefix: registry.developers.crunchydata.com/crunchydata
ccpimagetag: centos8-13.2-4.6.2
clustername: base
database: base
exporter: true
exporterport: "9187"
exporterLimits:
memory: "128Mi"
cpu: "400m"
resources:
memory: "1Gi"
cpu: "1"
limits:
memory: "1Gi"
cpu: "1"
name: base
namespace: pgo
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: db
operator: In
values:
- pgsql-main
- pgsql-repl
pgDataSource:
restoreFrom: ""
restoreOpts: ""
pgbadgerport: "10000"
pgoimageprefix: registry.developers.crunchydata.com/crunchydata
podAntiAffinity:
default: required
pgBackRest: required
pgBouncer: preferred
pgBouncer:
limits:
memory: 36Mi
replicas: 2
port: "5432"
replicas: "1"
serviceType: NodePort
syncReplication: true
tolerations:
- key: "db"
operator: "Equal"
value: "pgsql"
effect: "NoSchedule"
user: artur
userlabels:
pgo-version: 4.6.2