1 # Copyright © 2018 Amdocs, AT&T, Bell Canada
2 # Modifications Copyright (C) 2021 Bell Canada.
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
16 #################################################################
17 # Global configuration defaults.
18 #################################################################
23 # flag to enable the DB creation via mariadb-operator
26 #################################################################
28 #################################################################
30 - uid: '{{ include "common.postgres.secret.rootPassUID" . }}'
32 externalSecret: '{{ tpl (default "" .Values.config.pgRootPasswordExternalSecret) . }}'
33 password: '{{ .Values.config.pgRootPassword }}'
34 - uid: '{{ include "common.postgres.secret.userCredentialsUID" . }}'
36 externalSecret: '{{ tpl (default "" .Values.config.pgUserExternalSecret) . }}'
37 login: '{{ .Values.config.pgUserName }}'
38 password: '{{ .Values.config.pgUserPassword }}'
39 - uid: '{{ include "common.postgres.secret.primaryPasswordUID" . }}'
41 externalSecret: '{{ tpl (default "" .Values.config.pgPrimaryPasswordExternalSecret) . }}'
42 password: '{{ .Values.config.pgPrimaryPassword }}'
44 #################################################################
45 # Postgres Operator configuration defaults.
46 # Example: https://github.com/CrunchyData/postgres-operator-examples/tree/main/helm/postgres
47 #################################################################
50 # Possibility to override images
55 instanceName: instance1
57 #instanceStorageClassName:
65 #################################################################
66 # Application configuration defaults.
67 #################################################################
69 # bitnami image doesn't support well single quote in password
70 passwordStrengthOverride: basic
74 # application configuration
79 # pgPrimaryPassword: password
80 # pgUserPassword: password
81 # pgRootPassword: password
85 primary: pgset-primary
86 replica: pgset-replica
92 # probe configuration parameters
94 initialDelaySeconds: 300
97 # necessary to disable liveness probe when setting breakpoints
98 # in debugger so K8s doesn't restart unresponsive container
102 initialDelaySeconds: 10
105 ## Persist data to a persitent volume
109 ## 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
113 volumeReclaimPolicy: Retain
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
123 mountPath: /dockerdata-nfs
124 mountSubPath: postgres/data
125 mountInitPath: postgres
130 portName: tcp-postgres
134 name2: tcp-pgset-primary
135 portName2: tcp-postgres
139 name3: tcp-pgset-replica
140 portName3: tcp-postgres
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:'.
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
179 ## Bitnami Postgres Prometheus exporter image
180 ## ref: https://hub.docker.com/r/bitnami/postgres-exporter/tags/
182 image: bitnami/postgres-exporter:0.11.1
187 ## Postgres exporter additional command line flags
188 ## Can be used to specify command line flags
191 ## - --collect.binlog_size
194 ## Postgres Prometheus exporter containers' resource requests and limits
195 ## ref: http://kubernetes.io/docs/user-guide/compute-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:'.
208 ## Postgres metrics container's liveness and readiness probes
209 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
211 postgresUser: "postgres"
214 initialDelaySeconds: 30
221 initialDelaySeconds: 30
226 ## Postgres Prometheus exporter service parameters
234 prometheus.io/scrape: "true"
235 prometheus.io/port: "9187"
240 ## Namespace in which Prometheus is running
242 ## namespace: monitoring
244 ## Interval at which metrics should be scraped.
245 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
249 ## Timeout after which the scrape is ended
250 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
252 ## scrapeTimeout: 10s
253 ## Add your label under which prometheus is discovering resources
255 ## release: kube-prometheus-stack
257 ## ServiceMonitor selector labels
258 ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration
261 ## monitoring: enabled
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
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
273 metricRelabelings: []