a749c0959c11c5ffda8eb279bc54c1dceb0da2ac
[oom.git] / kubernetes / common / mariadb-galera / values.yaml
1 # Copyright © 2018 Amdocs
2 # Copyright © 2018,2021 Bell Canada
3 # Copyright © 2019 Samsung Electronics
4 # Copyright © 2020 Bitnami, Orange
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #       http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17
18 #################################################################
19 # Global configuration defaults.
20 #################################################################
21 global:
22   nodePortPrefix: 302
23   persistence:
24     mountPath: /dockerdata-nfs
25     backup:
26       mountPath: /dockerdata-nfs/backup
27   clusterDomain: cluster.local
28   metrics: {}
29   mariadbGalera:
30     # flag to enable the DB creation via mariadb-operator
31     useOperator: true
32     # if useOperator set to "true", set "enableServiceAccount to "false"
33     # as the SA is created by the Operator
34     enableServiceAccount: false
35     nameOverride: mariadb-galera
36     service: mariadb-galera
37
38 #################################################################
39 # Secrets metaconfig
40 #################################################################
41 secrets:
42   - uid: '{{ include "common.mariadb.secret.rootPassUID" . }}'
43     type: password
44     externalSecret: '{{ tpl (default "" .Values.rootUser.externalSecret) . }}'
45     password: '{{ .Values.rootUser.password }}'
46   - uid: '{{ include "common.mariadb.secret.userCredentialsUID" . }}'
47     type: basicAuth
48     externalSecret: '{{ tpl (default "" .Values.db.externalSecret) . }}'
49     login: '{{ .Values.db.user }}'
50     password: '{{ .Values.db.password }}'
51   - uid: '{{ include "common.mariadb.secret.backupCredentialsUID" . }}'
52     type: basicAuth
53     externalSecret: '{{ tpl (default "" .Values.galera.mariabackup.externalSecret) . }}'
54     login: '{{ .Values.galera.mariabackup.user }}'
55     password: '{{ .Values.galera.mariabackup.password }}'
56
57 mariadbOperator:
58   image: mariadb
59   appVersion: 11.1.2
60   galera:
61     enabled: true
62     agentImage: mariadb-operator/agent
63     agentVersion: v0.0.2
64     initImage: mariadb-operator/init
65     initVersion: v0.0.5
66
67 ## String to partially override common.names.fullname template (will maintain the release name)
68 ##
69 nameOverride: mariadb-galera
70
71 ## Custom db configuration
72 ##
73 db:
74   ## MariaDB username and password
75   ## Password is ignored if externalSecret is specified.
76   ## If not set, password will be "randomly" generated
77   ## ref: https://github.com/bitnami/bitnami-docker-mariadb-galera#creating-a-database-user-on-first-run
78   ##
79   user: my-user
80   # password:
81   # externalSecret:
82   ## Database to create
83   ## ref: https://github.com/bitnami/bitnami-docker-mariadb-galera#creating-a-database-on-first-run
84   ##
85   # name: my_database
86
87 ## Desired number of cluster nodes
88 ##
89 replicaCount: 3
90
91 ## Additional pod annotations for MariaDB Galera pods
92 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
93 ## -> here required to enable mariadb-galera in istio
94 ##
95 podAnnotations:
96   #  sidecar.istio.io/inject: "false"
97   traffic.sidecar.istio.io/excludeInboundPorts: "4444,4567,4568"
98   traffic.sidecar.istio.io/includeInboundPorts: '*'
99   traffic.sidecar.istio.io/excludeOutboundPorts: "4444,4567,4568"
100
101 mariadbOpConfiguration: |-
102   [mysqld]
103   max_allowed_packet=256M
104   lower_case_table_names = 1
105
106   ## Character set
107   collation_server=utf8_unicode_ci
108   init_connect='SET NAMES utf8'
109   character_set_server=utf8
110
111   ## MyISAM
112   key_buffer_size=32M
113   myisam_recover_options=FORCE,BACKUP
114
115   ## Safety
116   skip_host_cache
117   skip_name_resolve
118   max_allowed_packet=16M
119   max_connect_errors=1000000
120   sql_mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY
121   sysdate_is_now=1
122
123   ## Caches and Limits
124   tmp_table_size=32M
125   max_heap_table_size=32M
126   # Re-enabling as now works with Maria 10.1.2
127   query_cache_type=1
128   query_cache_limit=4M
129   query_cache_size=256M
130   max_connections=500
131   thread_cache_size=50
132   open_files_limit=65535
133   table_definition_cache=4096
134   table_open_cache=4096
135
136   ## InnoDB
137   innodb=FORCE
138   innodb_strict_mode=1
139   # Mandatory per https://github.com/codership/documentation/issues/25
140   innodb_autoinc_lock_mode=2
141   # Per https://www.percona.com/blog/2006/08/04/innodb-double-write/
142   innodb_doublewrite=1
143   innodb_flush_method=O_DIRECT
144   innodb_log_files_in_group=2
145   innodb_log_file_size=128M
146   innodb_flush_log_at_trx_commit=1
147   innodb_file_per_table=1
148   # 80% Memory is default reco.
149   # Need to re-evaluate when DB size grows
150   innodb_buffer_pool_size=2G
151   innodb_file_format=Barracuda
152
153 ##########################################################################################
154 # !!! the following configuration entries are ignored, when mariadbOperator is enabled !!!
155 ##########################################################################################
156 # bitnami image doesn't support well single quote in password
157 passwordStrengthOverride: basic
158
159 image: bitnami/mariadb-galera:10.5.8
160 ## Specify a imagePullPolicy
161 ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
162 ## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
163 ##
164 pullPolicy: Always
165
166 ## Set to true if you would like to see extra information on logs
167 ## It turns BASH debugging in minideb-extras-base
168 ##
169 debug: true
170
171 ## Sometimes, especially when a lot of pods are created at the same time,
172 ## actions performed on the databases are tried to be done before actual start.
173 init_sleep_time: 5
174
175 ## Use an alternate scheduler, e.g. "stork".
176 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
177 ##
178 # schedulerName:
179
180 ## StatefulSet controller supports relax its ordering guarantees while preserving its uniqueness and identity guarantees. There are two valid pod management policies: OrderedReady and Parallel
181 ## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#pod-management-policy
182 ##
183 podManagementPolicy: OrderedReady
184
185 ## MariaDB Gallera K8s svc properties
186 ##
187 service:
188   ## Kubernetes service type and port number
189   ##
190   type: ClusterIP
191   headless: {}
192   internalPort: &dbPort 3306
193   ports:
194     - name: tcp-mysql
195       port: *dbPort
196   headlessPorts:
197     - name: tcp-galera
198       port: 4567
199     - name: tcp-ist
200       port: 4568
201     - name: tcp-sst
202       port: 4444
203
204
205 ## Pods Service Account
206 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
207 ##
208 serviceAccount:
209   nameOverride: mariadb-galera
210   roles:
211     - read
212
213 ## Pod Security Context
214 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
215 ##
216 securityContext:
217   enabled: true
218   user_id: 10001
219   group_id: 10001
220
221 ## Database credentials for root (admin) user
222 ##
223 rootUser:
224   ## MariaDB admin user
225   user: root
226   ## MariaDB admin password
227   ## Password is ignored if externalSecret is specified.
228   ## If not set, password will be "randomly" generated
229   ## ref: https://github.com/bitnami/bitnami-docker-mariadb-galera#setting-the-root-password-on-first-run
230   ##
231   # password:
232   # externalSecret:
233
234 ## Galera configuration
235 ##
236 galera:
237   ## Galera cluster name
238   ##
239   name: galera
240
241   ## Bootstraping options
242   ## ref: https://github.com/bitnami/bitnami-docker-mariadb-galera#bootstraping
243   bootstrap:
244     ## Node to bootstrap from, you will need to change this parameter incase you want to bootstrap from other node
245     ##
246     bootstrapFromNode:
247     ## Force safe_to_bootstrap in grastate.date file.
248     ## This will set safe_to_bootstrap=1 in the node indicated by bootstrapFromNode.
249     forceSafeToBootstrap: false
250
251   ## Credentials to perform backups
252   ##
253   mariabackup:
254     ## MariaBackup username and password
255     ## Password is ignored if externalSecret is specified.
256     ## If not set, password will be "randomly" generated
257     ## ref: https://github.com/bitnami/bitnami-docker-mariadb-galera#setting-up-a-multi-master-cluster
258     ##
259     user: mariabackup
260     # password:
261     # externalSecret:
262
263 ## The backup job will mount the mariadb data pvc in order to run mariabackup.
264 ## For this reason the db data pvc needs to have accessMode: ReadWriteMany.
265 backup:
266   enabled: false
267   cron: "00 00 * * *"
268   retentionPeriod: 3
269   persistence:
270     ## If true, use a Persistent Volume Claim, If false, use emptyDir
271     ##
272     enabled: true
273     # Enable persistence using an existing PVC
274     # existingClaim:
275     ## selector can be used to match an existing PersistentVolume
276     ## selector:
277     ##   matchLabels:
278     ##     app: my-app
279     selector: {}
280     ## Persistent Volume Storage Class
281     ## If defined, storageClassName: <storageClass>
282     ## If set to "-", storageClassName: "", which disables dynamic provisioning
283     ## If undefined (the default) or set to null, no storageClassName spec is
284     ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
285     ##   GKE, AWS & OpenStack)
286     ##
287     # storageClass: "-"
288     ## Persistent Volume Claim annotations
289     ##
290     annotations:
291     ## Persistent Volume Access Mode
292     ##
293     accessMode: ReadWriteOnce
294     ## Persistent Volume size
295     ##
296     size: 2Gi
297
298
299 readinessCheck:
300   wait_for:
301     apps:
302       - '{{ include "common.name" . }}'
303
304 ## TLS configuration
305 ##
306 tls:
307   ## Enable TLS
308   ##
309   enabled: false
310   ## Name of the secret that contains the certificates
311   ##
312   # certificatesSecret:
313   ## Certificate filename
314   ##
315   # certFilename:
316   ## Certificate Key filename
317   ##
318   # certKeyFilename:
319   ## CA Certificate filename
320   ##
321   # certCAFilename:
322
323 ## Configure MariaDB with a custom my.cnf file
324 ## ref: https://mysql.com/kb/en/mysql/configuring-mysql-with-mycnf/#example-of-configuration-file
325 ## Alternatively, you can put your my.cnf under the files/ directory
326 ##
327 mariadbConfiguration: |-
328   [client]
329   port=3306
330   socket=/opt/bitnami/mariadb/tmp/mysql.sock
331   plugin_dir=/opt/bitnami/mariadb/plugin
332
333   [mysqld]
334   lower_case_table_names = 1
335   default_storage_engine=InnoDB
336   basedir=/opt/bitnami/mariadb
337   datadir=/bitnami/mariadb/data
338   plugin_dir=/opt/bitnami/mariadb/plugin
339   tmpdir=/opt/bitnami/mariadb/tmp
340   socket=/opt/bitnami/mariadb/tmp/mysql.sock
341   pid_file=/opt/bitnami/mariadb/tmp/mysqld.pid
342   bind_address=0.0.0.0
343
344   ## Character set
345   collation_server=utf8_unicode_ci
346   init_connect='SET NAMES utf8'
347   character_set_server=utf8
348
349   ## MyISAM
350   key_buffer_size=32M
351   myisam_recover_options=FORCE,BACKUP
352
353   ## Safety
354   skip_host_cache
355   skip_name_resolve
356   max_allowed_packet=16M
357   max_connect_errors=1000000
358   sql_mode=STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY
359   sysdate_is_now=1
360
361   ## Binary Logging
362   log_bin=mysql-bin
363   expire_logs_days=14
364   # Disabling for performance per http://severalnines.com/blog/9-tips-going-production-galera-cluster-mysql
365   sync_binlog=0
366   # Required for Galera
367   binlog_format=row
368
369   ## Caches and Limits
370   tmp_table_size=32M
371   max_heap_table_size=32M
372   # Re-enabling as now works with Maria 10.1.2
373   query_cache_type=1
374   query_cache_limit=4M
375   query_cache_size=256M
376   max_connections=500
377   thread_cache_size=50
378   open_files_limit=65535
379   table_definition_cache=4096
380   table_open_cache=4096
381
382   ## InnoDB
383   innodb=FORCE
384   innodb_strict_mode=1
385   # Mandatory per https://github.com/codership/documentation/issues/25
386   innodb_autoinc_lock_mode=2
387   # Per https://www.percona.com/blog/2006/08/04/innodb-double-write/
388   innodb_doublewrite=1
389   innodb_flush_method=O_DIRECT
390   innodb_log_files_in_group=2
391   innodb_log_file_size=128M
392   innodb_flush_log_at_trx_commit=1
393   innodb_file_per_table=1
394   # 80% Memory is default reco.
395   # Need to re-evaluate when DB size grows
396   innodb_buffer_pool_size=2G
397   innodb_file_format=Barracuda
398
399   ## Logging
400   log_error=/opt/bitnami/mariadb/logs/mysqld.log
401   slow_query_log_file=/opt/bitnami/mariadb/logs/mysqld.log
402   log_queries_not_using_indexes=1
403   slow_query_log=1
404
405   ## SSL
406   ## Use extraVolumes and extraVolumeMounts to mount /certs filesystem
407   # ssl_ca=/certs/ca.pem
408   # ssl_cert=/certs/server-cert.pem
409   # ssl_key=/certs/server-key.pem
410
411   [galera]
412   wsrep_on=ON
413   wsrep_provider=/opt/bitnami/mariadb/lib/libgalera_smm.so
414   wsrep_sst_method=mariabackup
415   wsrep_slave_threads=4
416   wsrep_cluster_address=gcomm://
417   wsrep_cluster_name=galera
418   wsrep_sst_auth="root:"
419   # Enabled for performance per https://mariadb.com/kb/en/innodb-system-variables/#innodb_flush_log_at_trx_commit
420   innodb_flush_log_at_trx_commit=2
421   # MYISAM REPLICATION SUPPORT #
422   wsrep_replicate_myisam=ON
423   binlog_format=row
424   default_storage_engine=InnoDB
425   innodb_autoinc_lock_mode=2
426   transaction-isolation=READ-COMMITTED
427   wsrep_causal_reads=1
428   wsrep_sync_wait=7
429
430   [mariadb]
431   plugin_load_add=auth_pam
432
433   ## Data-at-Rest Encryption
434   ## Use extraVolumes and extraVolumeMounts to mount /encryption filesystem
435   # plugin_load_add=file_key_management
436   # file_key_management_filename=/encryption/keyfile.enc
437   # file_key_management_filekey=FILE:/encryption/keyfile.key
438   # file_key_management_encryption_algorithm=AES_CTR
439   # encrypt_binlog=ON
440   # encrypt_tmp_files=ON
441
442   ## InnoDB/XtraDB Encryption
443   # innodb_encrypt_tables=ON
444   # innodb_encrypt_temporary_tables=ON
445   # innodb_encrypt_log=ON
446   # innodb_encryption_threads=4
447   # innodb_encryption_rotate_key_age=1
448
449   ## Aria Encryption
450   # aria_encrypt_tables=ON
451   # encrypt_tmp_disk_tables=ON
452
453 ## MariaDB additional command line flags
454 ## Can be used to specify command line flags, for example:
455 ##
456 ## extraFlags: "--max-connect-errors=1000 --max_connections=155"
457
458 ## updateStrategy for MariaDB Master StatefulSet
459 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
460 ##
461 updateStrategy:
462   type: RollingUpdate
463
464 ## Pod affinity preset
465 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
466 ## Allowed values: soft, hard
467 ##
468 podAffinityPreset: ""
469
470 ## Pod anti-affinity preset
471 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
472 ## Allowed values: soft, hard
473 ##
474 podAntiAffinityPreset: soft
475
476 ## Node affinity preset
477 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
478 ## Allowed values: soft, hard
479 ##
480 nodeAffinityPreset:
481   ## Node affinity type
482   ## Allowed values: soft, hard
483   type: ""
484   ## Node label key to match
485   ## E.g.
486   ## key: "kubernetes.io/e2e-az-name"
487   ##
488   key: ""
489   ## Node label values to match
490   ## E.g.
491   ## values:
492   ##   - e2e-az1
493   ##   - e2e-az2
494   ##
495   values: []
496
497 ## Affinity for pod assignment. Evaluated as a template.
498 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
499 ## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
500 ##
501 affinity: {}
502
503 ## Node labels for pod assignment. Evaluated as a template.
504 ## ref: https://kubernetes.io/docs/user-guide/node-selection/
505 ##
506 nodeSelector: {}
507
508 ## Tolerations for pod assignment. Evaluated as a template.
509 ## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
510 ##
511 tolerations: []
512
513 ## Enable persistence using Persistent Volume Claims
514 ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
515 ##
516 persistence:
517   ## If true, use a Persistent Volume Claim, If false, use emptyDir
518   ##
519   enabled: true
520   # Enable persistence using an existing PVC
521   # existingClaim:
522   mountPath: /dockerdata-nfs
523   mountSubPath: "mariadb-galera/data"
524   ## selector can be used to match an existing PersistentVolume
525   ## selector:
526   ##   matchLabels:
527   ##     app: my-app
528   selector: {}
529   ## Persistent Volume Storage Class
530   ## If defined, storageClassName: <storageClass>
531   ## If set to "-", storageClassName: "", which disables dynamic provisioning
532   ## If undefined (the default) or set to null, no storageClassName spec is
533   ##   set, choosing the default provisioner.  (gp2 on AWS, standard on
534   ##   GKE, AWS & OpenStack)
535   ##
536   # storageClass: "-"
537   ## Persistent Volume Claim annotations
538   ##
539   annotations:
540   ## Persistent Volume Access Mode
541   ## Use ReadWriteMany if backup is enabled, see backup section.
542   ##
543   accessMode: ReadWriteOnce
544   ## Persistent Volume size
545   ##
546   size: 3Gi
547
548 ## Additional pod labels
549 ##
550 # podLabels:
551 #   extraLabel: extraValue
552
553 ## Priority Class Name
554 #
555 # priorityClassName: 'priorityClass'
556
557 ## MariaDB Galera containers' resource requests and limits
558 ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
559 ##
560 flavor: small
561 resources:
562   small:
563     limits:
564       cpu: 1
565       memory: 4Gi
566     requests:
567       cpu: 500m
568       memory: 2Gi
569   large:
570     limits:
571       cpu: 2
572       memory: 6Gi
573     requests:
574       cpu: 1
575       memory: 3Gi
576   unlimited: {}
577
578 ## MariaDB Galera containers' liveness and readiness probes
579 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
580 ##
581 livenessProbe:
582   enabled: true
583   initialDelaySeconds: 1
584   periodSeconds: 10
585   timeoutSeconds: 180
586   successThreshold: 1
587   failureThreshold: 3
588 readinessProbe:
589   enabled: true
590   initialDelaySeconds: 1
591   periodSeconds: 10
592   timeoutSeconds: 180
593   successThreshold: 1
594   failureThreshold: 3
595 startupProbe:
596   ## Initializing the database could take some time
597   ##
598   enabled: true
599   initialDelaySeconds: 10
600   periodSeconds: 10
601   timeoutSeconds: 180
602   successThreshold: 1
603   # will wait up for initialDelaySeconds + failureThreshold*periodSeconds before
604   # stating startup wasn't good (910s per default)
605   failureThreshold: 90
606
607 ## Pod disruption budget configuration
608 ##
609 podDisruptionBudget:
610   ## Specifies whether a Pod disruption budget should be created
611   ##
612   create: true
613   minAvailable: 1
614   # maxUnavailable: 1
615
616 ## Prometheus exporter configuration
617 ##
618 metrics:
619   ## Bitnami MySQL Prometheus exporter image
620   ## ref: https://hub.docker.com/r/bitnami/mysqld-exporter/tags/
621   ##
622   image: bitnami/mysqld-exporter:0.12.1-debian-10-r264
623   pullPolicy: Always
624   ## MySQL exporter additional command line flags
625   ## Can be used to specify command line flags
626   ## E.g.:
627   ## extraFlags:
628   ##   - --collect.binlog_size
629   ##
630   extraFlags: []
631   ## MySQL Prometheus exporter containers' resource requests and limits
632   ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
633   ##
634   resources:
635     # We usually recommend not to specify default resources and to leave this as a conscious
636     # choice for the user. This also increases chances charts run on environments with little
637     # resources, such as Minikube. If you do want to specify resources, uncomment the following
638     # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
639     limits:
640       cpu: 0.5
641       memory: 256Mi
642     requests:
643       cpu: 0.5
644       memory: 256Mi
645   ## MariaDB Galera metrics container's liveness and readiness probes
646   ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
647   ##
648   livenessProbe:
649     enabled: true
650     initialDelaySeconds: 30
651     periodSeconds: 10
652     timeoutSeconds: 5
653     successThreshold: 1
654     failureThreshold: 3
655   readinessProbe:
656     enabled: true
657     initialDelaySeconds: 5
658     periodSeconds: 10
659     timeoutSeconds: 5
660     successThreshold: 1
661     failureThreshold: 3
662   ## MySQL Prometheus exporter service parameters
663   ##
664   service:
665     type: ClusterIP
666     port: 9104
667     annotations:
668       prometheus.io/scrape: "true"
669       prometheus.io/port: "9104"
670
671   ## Prometheus Operator ServiceMonitor configuration
672   ##
673   serviceMonitor:
674     enabled: false
675     ## Namespace in which Prometheus is running
676     ##
677     # namespace: monitoring
678
679     ## Interval at which metrics should be scraped.
680     ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
681     ##
682     # interval: 10s
683
684     ## Timeout after which the scrape is ended
685     ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#endpoint
686     ##
687     # scrapeTimeout: 10s
688
689     ## ServiceMonitor selector labels
690     ## ref: https://github.com/bitnami/charts/tree/master/bitnami/prometheus-operator#prometheus-configuration
691     ##
692     # selector:
693     #   prometheus: kube-prometheus
694
695     ## RelabelConfigs to apply to samples before scraping
696     ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
697     ## Value is evalued as a template
698     ##
699     relabelings: []
700
701     ## MetricRelabelConfigs to apply to samples before ingestion
702     ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
703     ## Value is evalued as a template
704     ##
705     metricRelabelings: []
706     #  - sourceLabels:
707     #      - "__name__"
708     #    targetLabel: "__name__"
709     #    action: replace
710     #    regex: '(.*)'
711     #    replacement: 'example_prefix_$1'
712
713   ## Prometheus Operator PrometheusRule configuration
714   ##
715   prometheusRules:
716     enabled: false
717
718     ## Additional labels to add to the PrometheusRule so it is picked up by the operator.
719     ## If using the [Helm Chart](https://github.com/helm/charts/tree/master/stable/prometheus-operator) this is the name of the Helm release and 'app: prometheus-operator'
720     selector:
721       app: prometheus-operator
722       release: prometheus
723
724     ## Rules as a map.
725     rules: []
726     #  - alert: MariaDB-Down
727     #    annotations:
728     #      message: 'MariaDB instance {{ $labels.instance }} is down'
729     #      summary: MariaDB instance is down
730     #    expr: absent(up{job="mariadb-galera"} == 1)
731     #    labels:
732     #      severity: warning
733     #      service: mariadb-galera
734     #    for: 5m