File tree Expand file tree Collapse file tree 4 files changed +76
-97
lines changed
Expand file tree Collapse file tree 4 files changed +76
-97
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ {{- define "postgres-operator.config" -}}
2+ Cluster :
3+ PrimaryNodeLabel :
4+ ReplicaNodeLabel :
5+ CCPImagePrefix : {{ .Values.env.ccp_image_prefix }}
6+ Metrics : false
7+ Badger : false
8+ CCPImageTag : {{ .Values.env.ccp_image_tag }}
9+ Port : 5432
10+ User : testuser
11+ Database : userdb
12+ PasswordAgeDays : 60
13+ PasswordLength : 8
14+ Strategy : 1
15+ Replicas : 0
16+ ArchiveMode : false
17+ ArchiveTimeout : 60
18+ ServiceType : ClusterIP
19+ Backrest : false
20+ BackrestPort : 2022
21+ Autofail : false
22+ AutofailReplaceReplica : false
23+ LogStatement : none
24+ LogMinDurationStatement : 60000
25+ PrimaryStorage : {{ .Values.pgo.PrimaryStorage }}
26+ XlogStorage : {{ .Values.pgo.XlogStorage }}
27+ BackupStorage : {{ .Values.pgo.BackupStorage }}
28+ ReplicaStorage : {{ .Values.pgo.ReplicaStorage }}
29+ BackrestStorage : {{ .Values.pgo.BackrestStorage }}
30+ Storage :
31+ {{ toYaml .Values.pgo.Storage | indent 2 }}
32+ DefaultContainerResources :
33+ DefaultLoadResources :
34+ DefaultLspvcResources :
35+ DefaultRmdataResources :
36+ DefaultBackupResources :
37+ DefaultPgbouncerResources :
38+ DefaultPgpoolResources :
39+ ContainerResources :
40+ small :
41+ RequestsMemory : 512Mi
42+ RequestsCPU : 0.1
43+ LimitsMemory : 512Mi
44+ LimitsCPU : 0.1
45+ large :
46+ RequestsMemory : 2Gi
47+ RequestsCPU : 2.0
48+ LimitsMemory : 2Gi
49+ LimitsCPU : 4.0
50+ Pgo :
51+ AutofailSleepSeconds : 9
52+ PreferredFailoverNode :
53+ Audit : false
54+ LSPVCTemplate : /pgo-config/pgo.lspvc-template.json
55+ LoadTemplate : /pgo-config/pgo.load-template.json
56+ COImagePrefix : {{ .Values.env.co_image_prefix }}
57+ COImageTag : {{ .Values.env.co_image_tag }}
58+ {{- end -}}
Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ metadata:
88 release : {{ .Release.Name }}
99 heritage : {{ .Release.Service }}
1010data :
11+ pgo.yaml : {{ include "postgres-operator.config" . | quote }}
1112{{ (.Files.Glob "files/postgres-operator/*").AsConfig | indent 2 }}
12- {{ (.Files.Glob "files/postgres-operator/cluster/1/*").AsConfig | indent 2 }}
13+ {{ (.Files.Glob "files/postgres-operator/cluster/1/*").AsConfig | indent 2 }}
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ replicaCount: 1
55
66image :
77 repository : crunchydata/postgres-operator
8- tag : centos7-3.5.5
98 pullPolicy : IfNotPresent
109
1110env :
1615 co_image_tag : " centos7-3.5.5"
1716 tls_no_verify : false
1817
18+ pgo :
19+ PrimaryStorage : hostpathstorage
20+ XlogStorage : hostpathstorage
21+ BackupStorage : hostpathstorage
22+ ReplicaStorage : hostpathstorage
23+ BackrestStorage : backreststorage
24+ Storage :
25+ hostpathstorage :
26+ AccessMode : ReadWriteOnce
27+ Size : 1G
28+ StorageType : create
29+ backreststorage :
30+ AccessMode : ReadWriteOnce
31+ Size : 1G
32+ StorageType : create
33+
1934service :
2035 type : ClusterIP
2136 port : 8443
You can’t perform that action at this time.
0 commit comments