blob: c0cdfef2d2fbce43d2d58c906f330aa4ba65028b [file] [log] [blame]
BorislavGb36d86c2018-04-01 18:59:54 +03001# Copyright © 2018 Amdocs, AT&T, Bell Canada
Bruno Sakoto1ed3d262021-03-05 18:11:00 -05002# Modifications Copyright (C) 2021 Bell Canada.
BorislavGb36d86c2018-04-01 18:59:54 +03003#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16#################################################################
17# Global configuration defaults.
18#################################################################
19global:
20 nodePortPrefix: 302
BorislavGb36d86c2018-04-01 18:59:54 +030021 persistence: {}
rajesh.kumar062e7c22023-10-17 15:29:20 +053022 postgres:
23 # flag to enable the DB creation via mariadb-operator
24 useOperator: false
Krzysztof Opasiak17547342020-03-10 23:53:31 +010025
BorislavGb36d86c2018-04-01 18:59:54 +030026#################################################################
Krzysztof Opasiakf1f945b2020-02-04 21:16:50 +010027# Secrets metaconfig
28#################################################################
29secrets:
30 - uid: '{{ include "common.postgres.secret.rootPassUID" . }}'
31 type: password
32 externalSecret: '{{ tpl (default "" .Values.config.pgRootPasswordExternalSecret) . }}'
33 password: '{{ .Values.config.pgRootPassword }}'
34 - uid: '{{ include "common.postgres.secret.userCredentialsUID" . }}'
35 type: basicAuth
36 externalSecret: '{{ tpl (default "" .Values.config.pgUserExternalSecret) . }}'
37 login: '{{ .Values.config.pgUserName }}'
38 password: '{{ .Values.config.pgUserPassword }}'
39 - uid: '{{ include "common.postgres.secret.primaryPasswordUID" . }}'
40 type: password
41 externalSecret: '{{ tpl (default "" .Values.config.pgPrimaryPasswordExternalSecret) . }}'
42 password: '{{ .Values.config.pgPrimaryPassword }}'
43
44#################################################################
rajesh.kumar062e7c22023-10-17 15:29:20 +053045# Postgres Operator configuration defaults.
46# Example: https://github.com/CrunchyData/postgres-operator-examples/tree/main/helm/postgres
47#################################################################
48postgresOperator:
49 postgresVersion: 16
50 # Possibility to override images
51 #imagePostgres:
52 #imagePgBouncer:
53 #imageExporter:
54 #imagePgBackRest:
55 instanceName: instance1
56 instanceReplicas: 2
57 #instanceStorageClassName:
58 instanceSize: 1Gi
59 #instanceCPU:
60 #instanceMemory:
61 bouncerReplicas: 2
62 monitoring: true
63 #monitoringConfig: {}
64
65#################################################################
BorislavGb36d86c2018-04-01 18:59:54 +030066# Application configuration defaults.
67#################################################################
68
puthuparambil.aditya7625e522021-01-22 22:01:50 +010069# bitnami image doesn't support well single quote in password
70passwordStrengthOverride: basic
71
BorislavGb36d86c2018-04-01 18:59:54 +030072pullPolicy: Always
73
74# application configuration
75config:
76 pgUserName: testuser
77 pgDatabase: userdb
Bruno Sakoto1ed3d262021-03-05 18:11:00 -050078 pgDataPath: data
Krzysztof Opasiakb51ee372020-05-15 01:24:10 +020079 # pgPrimaryPassword: password
80 # pgUserPassword: password
81 # pgRootPassword: password
BorislavGb36d86c2018-04-01 18:59:54 +030082
83container:
84 name:
85 primary: pgset-primary
86 replica: pgset-replica
87
BorislavGb36d86c2018-04-01 18:59:54 +030088nodeSelector: {}
89
90affinity: {}
91
92# probe configuration parameters
93liveness:
BorislavG3f102012018-05-17 16:03:33 +000094 initialDelaySeconds: 300
BorislavGb36d86c2018-04-01 18:59:54 +030095 periodSeconds: 10
96 timeoutSeconds: 5
97 # necessary to disable liveness probe when setting breakpoints
98 # in debugger so K8s doesn't restart unresponsive container
99 enabled: true
100
101readiness:
BorislavG3f102012018-05-17 16:03:33 +0000102 initialDelaySeconds: 10
BorislavGb36d86c2018-04-01 18:59:54 +0300103 periodSeconds: 10
104
105## Persist data to a persitent volume
106persistence:
107 enabled: true
BorislavG3f102012018-05-17 16:03:33 +0000108
BorislavGb36d86c2018-04-01 18:59:54 +0300109 ## A manually managed Persistent Volume and Claim
110 ## Requires persistence.enabled: true
111 ## If defined, PVC must be created manually before volume will be bound
112 # existingClaim:
113 volumeReclaimPolicy: Retain
114
115 ## database data Persistent Volume Storage Class
116 ## If defined, storageClassName: <storageClass>
117 ## If set to "-", storageClassName: "", which disables dynamic provisioning
118 ## If undefined (the default) or set to null, no storageClassName spec is
119 ## set, choosing the default provisioner. (gp2 on AWS, standard on
120 ## GKE, AWS & OpenStack)
121 accessMode: ReadWriteOnce
122 size: 1Gi
123 mountPath: /dockerdata-nfs
124 mountSubPath: postgres/data
125 mountInitPath: postgres
126
127service:
128 type: ClusterIP
129 name: pgset
Sylvain Desbureaux0b243b62019-12-11 11:53:42 +0100130 portName: tcp-postgres
BorislavGb36d86c2018-04-01 18:59:54 +0300131 externalPort: 5432
132 internalPort: 5432
133 type2: ClusterIP
Sylvain Desbureaux0b243b62019-12-11 11:53:42 +0100134 name2: tcp-pgset-primary
135 portName2: tcp-postgres
BorislavGb36d86c2018-04-01 18:59:54 +0300136 externalPort2: 5432
137 internalPort2: 5432
138 type3: ClusterIP
Sylvain Desbureaux0b243b62019-12-11 11:53:42 +0100139 name3: tcp-pgset-replica
140 portName3: tcp-postgres
BorislavGb36d86c2018-04-01 18:59:54 +0300141 externalPort3: 5432
142 internalPort3: 5432
143
144ingress:
145 enabled: false
146
Sylvain Desbureaux335781f2020-09-23 10:31:50 +0200147flavor: small
148
149#resources: {}
150# We usually recommend not to specify default resources and to leave this as a conscious
151# choice for the user. This also increases chances charts run on environments with little
152# resources, such as Minikube. If you do want to specify resources, uncomment the following
153# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
154#
155# Example:
156# Configure resource requests and limits
157# ref: http://kubernetes.io/docs/user-guide/compute-resources/
158# Minimum memory for development is 2 CPU cores and 4GB memory
159# Minimum memory for production is 4 CPU cores and 8GB memory
160resources:
161 small:
162 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100163 cpu: "100m"
Andreas Geissler8cbb3d92024-03-12 16:44:56 +0100164 memory: "300Mi"
Sylvain Desbureaux335781f2020-09-23 10:31:50 +0200165 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100166 cpu: "10m"
Andreas Geissler8cbb3d92024-03-12 16:44:56 +0100167 memory: "90Mi"
Sylvain Desbureaux335781f2020-09-23 10:31:50 +0200168 large:
169 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100170 cpu: "2"
171 memory: "4Gi"
Sylvain Desbureaux335781f2020-09-23 10:31:50 +0200172 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100173 cpu: "1"
174 memory: "2Gi"
Sylvain Desbureaux335781f2020-09-23 10:31:50 +0200175 unlimited: {}
miroslav.masaryk47d3ff52023-04-12 16:12:48 +0200176
177metrics:
178 enabled: false
179 ## Bitnami Postgres Prometheus exporter image
180 ## ref: https://hub.docker.com/r/bitnami/postgres-exporter/tags/
181 ##
182 image: bitnami/postgres-exporter:0.11.1
183 pullPolicy: Always
184 ports:
185 - name: tcp-metrics
186 port: 9187
187 ## Postgres exporter additional command line flags
188 ## Can be used to specify command line flags
189 ## E.g.:
190 ## extraFlags:
191 ## - --collect.binlog_size
192 ##
193 extraFlags: []
194 ## Postgres Prometheus exporter containers' resource requests and limits
195 ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
196 ##
197 resources:
198 # We usually recommend not to specify default resources and to leave this as a conscious
199 # choice for the user. This also increases chances charts run on environments with little
200 # resources, such as Minikube. If you do want to specify resources, uncomment the following
201 # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
202 limits:
Andreas Geissler47537432024-02-27 08:55:23 +0100203 cpu: "0.5"
Andreas Geissler8cbb3d92024-03-12 16:44:56 +0100204 memory: "200Mi"
miroslav.masaryk47d3ff52023-04-12 16:12:48 +0200205 requests:
Andreas Geissler47537432024-02-27 08:55:23 +0100206 cpu: "0.5"
Andreas Geissler8cbb3d92024-03-12 16:44:56 +0100207 memory: "200Mi"
miroslav.masaryk47d3ff52023-04-12 16:12:48 +0200208 ## Postgres metrics container's liveness and readiness probes
209 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
210 ##
211 postgresUser: "postgres"
212 livenessProbe:
213 enabled: true
214 initialDelaySeconds: 30
215 periodSeconds: 10
216 timeoutSeconds: 180
217 successThreshold: 1
218 failureThreshold: 3
219 readinessProbe:
220 enabled: true
221 initialDelaySeconds: 30
222 periodSeconds: 10
223 timeoutSeconds: 180
224 successThreshold: 1
225 failureThreshold: 3
226 ## Postgres Prometheus exporter service parameters
227 ##
228 service:
229 type2: ClusterIP
230 port2: 9187
231 type3: ClusterIP
232 port3: 9187
233 annotations:
234 prometheus.io/scrape: "true"
235 prometheus.io/port: "9187"
236 serviceMonitor:
237 enabled: false
238 basicAuth:
239 enabled: false
240 ## Namespace in which Prometheus is running
241 ##
242 ## namespace: monitoring
243 ##
244 ## Interval at which metrics should be scraped.
245 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
246 ##
247 ## interval: 10s
248 ##
249 ## Timeout after which the scrape is ended
250 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
251 ##
252 ## scrapeTimeout: 10s
253 ## Add your label under which prometheus is discovering resources
254 ## labels:
255 ## release: kube-prometheus-stack
256 ##
257 ## ServiceMonitor selector labels
258 ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration
259 ##
260 ## selector:
261 ## monitoring: enabled
262 ##
263 ## RelabelConfigs to apply to samples before scraping
264 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
265 ## Value is evalued as a template
266 ##
267 relabelings: []
268 ##
269 ## MetricRelabelConfigs to apply to samples before ingestion
270 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
271 ## Value is evalued as a template
272 ##
273 metricRelabelings: []