Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / common / postgres / values.yaml
1 # Copyright © 2018 Amdocs, AT&T, Bell Canada
2 # Modifications Copyright (C) 2021 Bell Canada.
3 #
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 #################################################################
19 global:
20   nodePortPrefix: 302
21   persistence: {}
22   postgres:
23     # flag to enable the DB creation via mariadb-operator
24     useOperator: false
25
26 #################################################################
27 # Secrets metaconfig
28 #################################################################
29 secrets:
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 #################################################################
45 # Postgres Operator configuration defaults.
46 # Example: https://github.com/CrunchyData/postgres-operator-examples/tree/main/helm/postgres
47 #################################################################
48 postgresOperator:
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 #################################################################
66 # Application configuration defaults.
67 #################################################################
68
69 # bitnami image doesn't support well single quote in password
70 passwordStrengthOverride: basic
71
72 pullPolicy: Always
73
74 # application configuration
75 config:
76   pgUserName: testuser
77   pgDatabase: userdb
78   pgDataPath: data
79   # pgPrimaryPassword: password
80   # pgUserPassword: password
81   # pgRootPassword: password
82
83 container:
84   name:
85     primary: pgset-primary
86     replica: pgset-replica
87
88 nodeSelector: {}
89
90 affinity: {}
91
92 # probe configuration parameters
93 liveness:
94   initialDelaySeconds: 300
95   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
101 readiness:
102   initialDelaySeconds: 10
103   periodSeconds: 10
104
105 ## Persist data to a persitent volume
106 persistence:
107   enabled: true
108
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
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
127 service:
128   type: ClusterIP
129   name: pgset
130   portName: tcp-postgres
131   externalPort: 5432
132   internalPort: 5432
133   type2: ClusterIP
134   name2: tcp-pgset-primary
135   portName2: tcp-postgres
136   externalPort2: 5432
137   internalPort2: 5432
138   type3: ClusterIP
139   name3: tcp-pgset-replica
140   portName3: tcp-postgres
141   externalPort3: 5432
142   internalPort3: 5432
143
144 ingress:
145   enabled: false
146
147 flavor: 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
160 resources:
161   small:
162     limits:
163       cpu: "100m"
164       memory: "300Mi"
165     requests:
166       cpu: "10m"
167       memory: "90Mi"
168   large:
169     limits:
170       cpu: "2"
171       memory: "4Gi"
172     requests:
173       cpu: "1"
174       memory: "2Gi"
175   unlimited: {}
176
177 metrics:
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:
203       cpu: "0.5"
204       memory: "200Mi"
205     requests:
206       cpu: "0.5"
207       memory: "200Mi"
208   ## 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: []