DirectorySecurity AdvisoriesPricing
Sign inTry Starter for free
Directory
mariadb logoHELM

mariadb

Helm chart
iamguarded
Last changed
Request a free trial

Contact our team to test out this Helm chart and related images for free. Please also indicate any other images you would like to evaluate.

Overview
Chart tags
Default values
Chart metadata
Images

Tag:
Compare:

1
# This file has been modified by Chainguard, Inc.
2
#
3
# Copyright Chainguard, Inc. All Rights Reserved.
4
# Chainguard, Inc. modifications are subject to the license
5
# available at: https://www.chainguard.dev/legal/software-license-agreement
6
#
7
# Copyright Broadcom, Inc. All Rights Reserved.
8
# SPDX-License-Identifier: APACHE-2.0
9
10
## @section Global parameters
11
## Global Docker image parameters
12
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
13
## Current available global Docker image parameters: imageRegistry, imagePullSecrets and storageClass
14
##
15
16
## @param global.imageRegistry Global Docker Image registry
17
## @param global.useImageTags Pull every image by tag and ignore all image digests, including digests set in values. Use this when your registry mirror does not have the chart's default image digests.
18
## @param global.imagePullSecrets Global Docker registry secret names as an array
19
## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
20
##
21
global:
22
imageRegistry: ""
23
useImageTags: false
24
## E.g.
25
## imagePullSecrets:
26
## - myRegistryKeySecretName
27
##
28
imagePullSecrets: []
29
defaultStorageClass: ""
30
## Security parameters
31
##
32
security:
33
## @param global.security.allowInsecureImages Allows skipping image verification
34
allowInsecureImages: false
35
## Compatibility adaptations for Kubernetes platforms
36
##
37
compatibility:
38
## Compatibility adaptations for Openshift
39
##
40
openshift:
41
## @param global.compatibility.openshift.adaptSecurityContext Adapt the securityContext sections of the deployment to make them compatible with Openshift restricted-v2 SCC: remove runAsUser, runAsGroup and fsGroup and let the platform use their allowed default IDs. Possible values: auto (apply if the detected running cluster is Openshift), force (perform the adaptation always), disabled (do not perform adaptation)
42
##
43
adaptSecurityContext: auto
44
org: ""
45
## @section Common parameters
46
##
47
48
## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
49
##
50
kubeVersion: ""
51
## @param nameOverride String to partially override mariadb.fullname
52
##
53
nameOverride: ""
54
## @param fullnameOverride String to fully override mariadb.fullname
55
##
56
fullnameOverride: ""
57
## @param clusterDomain Default Kubernetes cluster domain
58
##
59
clusterDomain: cluster.local
60
## @param commonAnnotations Common annotations to add to all MariaDB resources (sub-charts are not considered)
61
##
62
commonAnnotations: {}
63
## @param commonLabels Common labels to add to all MariaDB resources (sub-charts are not considered)
64
##
65
commonLabels: {}
66
## @param schedulerName Name of the scheduler (other than default) to dispatch pods
67
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
68
##
69
schedulerName: ""
70
## @param runtimeClassName Name of the Runtime Class for all MariaDB pods
71
## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
72
##
73
runtimeClassName: ""
74
## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template)
75
##
76
extraDeploy: []
77
## Enable diagnostic mode in the deployment
78
##
79
diagnosticMode:
80
## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
81
##
82
enabled: false
83
## @param diagnosticMode.command Command to override all containers in the deployment
84
##
85
command:
86
- sleep
87
## @param diagnosticMode.args Args to override all containers in the deployment
88
##
89
args:
90
- infinity
91
## @param serviceBindings.enabled Create secret for service binding (Experimental)
92
## Ref: https://servicebinding.io/service-provider/
93
##
94
serviceBindings:
95
enabled: false
96
## @section MariaDB common parameters
97
##
98
99
## Iamguarded MariaDB image
100
## @param image.registry [default: REGISTRY_NAME] MariaDB image registry
101
## @param image.repository [default: REPOSITORY_NAME/mariadb] MariaDB image repository
102
## @skip image.tag MariaDB image tag (immutable tags are recommended)
103
## @param image.digest MariaDB image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
104
## @param image.pullPolicy MariaDB image pull policy
105
## @param image.pullSecrets Specify docker-registry secret names as an array
106
## @param image.debug Specify if debug logs should be enabled
107
##
108
image:
109
registry: cgr.dev
110
repository: chainguard-private/mariadb-iamguarded
111
tag: 13.2.1
112
digest: ""
113
## Specify a imagePullPolicy
114
## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
115
##
116
pullPolicy: IfNotPresent
117
## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
118
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
119
## Example:
120
## pullSecrets:
121
## - myRegistryKeySecretName
122
##
123
pullSecrets: []
124
## Set to true if you would like to see extra information on logs
125
## It turns BASH and/or NAMI debugging in the image
126
##
127
debug: false
128
## @param architecture MariaDB architecture (`standalone` or `replication`)
129
##
130
architecture: standalone
131
## MariaDB Authentication parameters
132
##
133
auth:
134
## @param auth.rootPassword Password for the `root` user. Ignored if existing secret is provided.
135
##
136
rootPassword: ""
137
## @param auth.database Name for a custom database to create
138
##
139
database: my_database
140
## @param auth.username Name for a custom user to create
141
##
142
username: ""
143
## @param auth.password Password for the new user. Ignored if existing secret is provided
144
##
145
password: ""
146
## @param auth.replicationUser MariaDB replication user
147
##
148
replicationUser: replicator
149
## @param auth.replicationPassword MariaDB replication user password. Ignored if existing secret is provided
150
##
151
replicationPassword: ""
152
## @param auth.existingSecret Use existing secret for password details (`auth.rootPassword`, `auth.password`, `auth.replicationPassword` will be ignored and picked up from this secret). The secret has to contain the keys `mariadb-root-password`, `mariadb-replication-password` and `mariadb-password`
153
##
154
existingSecret: ""
155
## @param auth.forcePassword Force users to specify required passwords
156
##
157
forcePassword: false
158
## @param auth.usePasswordFiles Mount credentials as files instead of using environment variables
159
##
160
usePasswordFiles: true
161
## @param auth.customPasswordFiles Use custom password files when `auth.usePasswordFiles` is set to `true`. Define path for keys `root` and `user`, also define `replicator` if `architecture` is set to `replication`
162
## Example:
163
## customPasswordFiles:
164
## root: /vault/secrets/mariadb-root
165
## user: /vault/secrets/mariadb-user
166
## replicator: /vault/secrets/mariadb-replicator
167
##
168
customPasswordFiles: {}
169
## @param initdbScripts Dictionary of initdb scripts
170
## Specify dictionary of scripts to be run at first boot
171
## Example:
172
## initdbScripts:
173
## my_init_script.sh: |
174
## #!/bin/bash
175
## echo "Do something."
176
##
177
initdbScripts: {}
178
## @param initdbScriptsConfigMap ConfigMap with the initdb scripts (Note: Overrides `initdbScripts`)
179
##
180
initdbScriptsConfigMap: ""
181
## @section TLS/SSL parameters
182
##
183
## @param tls.enabled Enable TLS in MariaDB
184
## @param tls.existingSecret Existing secret that contains TLS certificates
185
## @param tls.certFilename The secret key from the existingSecret if 'cert' key different from the default (tls.crt)
186
## @param tls.certKeyFilename The secret key from the existingSecret if 'key' key different from the default (tls.key)
187
## @param tls.certCAFilename The secret key from the existingSecret if 'ca' key different from the default (tls.crt)
188
## @param tls.ca CA certificate for TLS. Ignored if `tls.existingSecret` is set
189
## @param tls.cert TLS certificate. Ignored if `tls.master.existingSecret` is set
190
## @param tls.key TLS key. Ignored if `tls.master.existingSecret` is set
191
##
192
tls:
193
enabled: false
194
existingSecret: ""
195
certFilename: tls.crt
196
certKeyFilename: tls.key
197
certCAFilename: ""
198
ca: ""
199
cert: ""
200
key: ""
201
## @param tls.autoGenerated.enabled Enable automatic generation of certificates for TLS
202
## @param tls.autoGenerated.engine Mechanism to generate the certificates (allowed values: helm, cert-manager)
203
autoGenerated:
204
enabled: true
205
engine: helm
206
## @param tls.autoGenerated.certManager.existingIssuer The name of an existing Issuer to use for generating the certificates (only for `cert-manager` engine)
207
## @param tls.autoGenerated.certManager.existingIssuerKind Existing Issuer kind, defaults to Issuer (only for `cert-manager` engine)
208
## @param tls.autoGenerated.certManager.keyAlgorithm Key algorithm for the certificates (only for `cert-manager` engine)
209
## @param tls.autoGenerated.certManager.keySize Key size for the certificates (only for `cert-manager` engine)
210
## @param tls.autoGenerated.certManager.duration Duration for the certificates (only for `cert-manager` engine)
211
## @param tls.autoGenerated.certManager.renewBefore Renewal period for the certificates (only for `cert-manager` engine)
212
certManager:
213
existingIssuer: ""
214
existingIssuerKind: ""
215
keySize: 2048
216
keyAlgorithm: RSA
217
duration: 2160h
218
renewBefore: 360h
219
## @section Transparent Data Encryption parameters
220
## ref: https://mariadb.com/kb/en/file-key-management-encryption-plugin/
221
##
222
## @param tde.enabled Enable Transparent Data Encryption using the File Key Management Encryption Plugin for MariaDB
223
## @param tde.existingSecret Existing secret that contains Transparent Data Encryption key files used when secretsStoreProvider is not enabled
224
## @param tde.randomKeyFilename File name of the 'random keyfile' when it is different from the default (keyfile.key), is also used for key name in the existingSecret
225
## @param tde.encryptedKeyFilename File name of the 'encrypted keyfile' when it is different from the default (keyfile.enc), is also used for key name in the existingSecret
226
## @param tde.fileKeyManagementEncryptionAlgorithm Encryption algorithm used for encrypting data (allowed values: AES_CTR, AES_CBC | default: AES_CTR)
227
## @param tde.innodbEncryptTables Enables automatic encryption of all InnoDB tablespaces (allowed values: FORCE, ON, OFF | default: FORCE)
228
## @param tde.innodbEncryptLog Enables encryption of the InnoDB redo log (allowed values: ON, OFF | default: ON)
229
## @param tde.innodbEncryptTemporaryTables Enables automatic encryption of the InnoDB temporary tablespace (allowed values: ON, OFF | default: ON)
230
## @param tde.innodbEncryptionThreads Number of threads to use for encryption (default: 4)
231
## @param tde.encryptTmpDiskTables Enables automatic encryption of all internal on-disk temporary tables that are created during query execution (allowed values: ON, OFF | default: ON)
232
## @param tde.encryptTmpTiles Enables automatic encryption of temporary files, such as those created for filesort operations, binary log file caches, etc. (allowed values: ON, OFF | default: ON)
233
## @param tde.encryptBINLOG Enables encrypting binary logs including relay logs (allowed values: ON, OFF | default: ON)
234
## @param tde.ariaEncryptTables Enables automatic encryption of all Aria tablespaces (allowed values: ON, OFF | default: ON)
235
##
236
tde:
237
enabled: false
238
existingSecret: ""
239
randomKeyFilename: keyfile.key
240
encryptedKeyFilename: keyfile.enc
241
fileKeyManagementEncryptionAlgorithm: AES_CTR
242
innodbEncryptTables: FORCE
243
innodbEncryptLog: "ON"
244
innodbEncryptTemporaryTables: "ON"
245
encryptTmpDiskTables: "ON"
246
encryptTmpTiles: "ON"
247
encryptBINLOG: "ON"
248
ariaEncryptTables: "ON"
249
innodbEncryptionThreads: 4
250
## @param tde.secretsStoreProvider.enabled Enable use of secrets store provider for Transparent Data Encryption key files
251
## @param tde.secretsStoreProvider.provider Type of provider used in secrets store provider class (allowed values: vault)
252
secretsStoreProvider:
253
enabled: false
254
provider: vault
255
## @param tde.secretsStoreProvider.vault.roleName The name of the HashiCorp Vault role used for accessing the key files (only for `vault` provider)
256
## @param tde.secretsStoreProvider.vault.address The URL of the HashiCorp Vault server (only for `vault` provider)
257
## @param tde.secretsStoreProvider.vault.authMountPath The HashiCorp Vault auth mount path (only for `vault` provider)
258
## @param tde.secretsStoreProvider.vault.randomKeySecretPath The HashiCorp Vault secret path for the 'random keyfile' (only for `vault` provider)
259
## @param tde.secretsStoreProvider.vault.randomKeySecretKey The HashiCorp Vault secret key for the 'random keyfile' (only for `vault` provider)
260
## @param tde.secretsStoreProvider.vault.encryptedKeySecretPath The HashiCorp Vault secret path for the 'encrypted keyfile' (only for `vault` provider)
261
## @param tde.secretsStoreProvider.vault.encryptedKeySecretKey The HashiCorp Vault secret key for the 'encrypted keyfile' (only for `vault` provider)
262
vault:
263
roleName: ""
264
address: ""
265
authMountPath: ""
266
randomKeySecretPath: ""
267
randomKeySecretKey: ""
268
encryptedKeySecretPath: ""
269
encryptedKeySecretKey: ""
270
## @section MariaDB Primary parameters
271
##
272
273
## Mariadb Primary parameters
274
##
275
primary:
276
## @param primary.name Name of the primary database (eg primary, master, leader, ...)
277
##
278
name: primary
279
## @param primary.command Override default container command on MariaDB Primary container(s) (useful when using custom images)
280
##
281
command: []
282
## @param primary.args Override default container args on MariaDB Primary container(s) (useful when using custom images)
283
##
284
args: []
285
## @param primary.lifecycleHooks for the MariaDB Primary container(s) to automate configuration before or after startup
286
##
287
lifecycleHooks: {}
288
## @param primary.automountServiceAccountToken Mount Service Account token in pod
289
##
290
automountServiceAccountToken: false
291
## @param primary.hostAliases Add deployment host aliases
292
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
293
##
294
hostAliases: []
295
## @param primary.containerPorts.mysql Container port for mysql
296
##
297
containerPorts:
298
mysql: 3306
299
## @param primary.configuration [string] MariaDB Primary configuration to be injected as ConfigMap
300
## ref: https://mysql.com/kb/en/mysql/configuring-mysql-with-mycnf/#example-of-configuration-file
301
##
302
configuration: |-
303
[mysqld]
304
skip-name-resolve
305
explicit_defaults_for_timestamp
306
basedir=/opt/iamguarded/mariadb
307
datadir=/iamguarded/mariadb/data
308
plugin_dir=/opt/iamguarded/mariadb/plugin
309
port={{ .Values.primary.containerPorts.mysql }}
310
socket=/opt/iamguarded/mariadb/tmp/mysql.sock
311
tmpdir=/opt/iamguarded/mariadb/tmp
312
max_allowed_packet=16M
313
bind-address=*
314
pid-file=/opt/iamguarded/mariadb/tmp/mysqld.pid
315
log-error=/opt/iamguarded/mariadb/logs/mysqld.log
316
character-set-server=UTF8
317
collation-server=utf8_general_ci
318
slow_query_log=0
319
long_query_time=10.0
320
binlog_expire_logs_seconds=2592000
321
{{- if .Values.tls.enabled }}
322
ssl_cert=/opt/iamguarded/mariadb/certs/{{ .Values.tls.certFilename }}
323
ssl_key=/opt/iamguarded/mariadb/certs/{{ .Values.tls.certKeyFilename }}
324
{{- if (include "mariadb.tlsCACert" .) }}
325
ssl_ca={{ include "mariadb.tlsCACert" . }}
326
{{- end }}
327
{{- end }}
328
{{- if .Values.tde.enabled }}
329
plugin_load_add=file_key_management
330
file_key_management_filename=/opt/iamguarded/mariadb/tde/{{ .Values.tde.encryptedKeyFilename }}
331
file_key_management_filekey=FILE:/opt/iamguarded/mariadb/tde/{{ .Values.tde.randomKeyFilename }}
332
file_key_management_encryption_algorithm={{ .Values.tde.fileKeyManagementEncryptionAlgorithm }}
333
innodb_encrypt_tables={{ .Values.tde.innodbEncryptTables }}
334
innodb_encrypt_log={{ .Values.tde.innodbEncryptLog }}
335
innodb_encrypt_temporary_tables={{ .Values.tde.innodbEncryptTemporaryTables }}
336
innodb_encryption_threads={{ .Values.tde.innodbEncryptionThreads }}
337
encrypt_tmp_disk_tables={{ .Values.tde.encryptTmpDiskTables }}
338
encrypt_tmp_files={{ .Values.tde.encryptTmpTiles }}
339
encrypt_binlog={{ .Values.tde.encryptBINLOG }}
340
aria_encrypt_tables={{ .Values.tde.ariaEncryptTables }}
341
{{- end }}
342
343
[client]
344
port=3306
345
socket=/opt/iamguarded/mariadb/tmp/mysql.sock
346
default-character-set=UTF8
347
plugin_dir=/opt/iamguarded/mariadb/plugin
348
349
[manager]
350
port=3306
351
socket=/opt/iamguarded/mariadb/tmp/mysql.sock
352
pid-file=/opt/iamguarded/mariadb/tmp/mysqld.pid
353
## @param primary.existingConfigmap Name of existing ConfigMap with MariaDB Primary configuration.
354
## NOTE: When it's set the 'configuration' parameter is ignored
355
##
356
existingConfigmap: ""
357
## @param primary.updateStrategy.type MariaDB primary statefulset strategy type
358
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
359
##
360
updateStrategy:
361
## StrategyType
362
## Can be set to RollingUpdate or OnDelete
363
##
364
type: RollingUpdate
365
## @param primary.rollingUpdatePartition Partition update strategy for Mariadb Primary statefulset
366
## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
367
##
368
rollingUpdatePartition: ""
369
## @param primary.podAnnotations Additional pod annotations for MariaDB primary pods
370
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
371
##
372
podAnnotations: {}
373
## @param primary.podLabels Extra labels for MariaDB primary pods
374
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
375
##
376
podLabels: {}
377
## @param primary.podAffinityPreset MariaDB primary pod affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
378
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
379
##
380
podAffinityPreset: ""
381
## @param primary.podAntiAffinityPreset MariaDB primary pod anti-affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
382
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
383
##
384
podAntiAffinityPreset: soft
385
## Mariadb Primary node affinity preset
386
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
387
##
388
nodeAffinityPreset:
389
## @param primary.nodeAffinityPreset.type MariaDB primary node affinity preset type. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
390
##
391
type: ""
392
## @param primary.nodeAffinityPreset.key MariaDB primary node label key to match Ignored if `primary.affinity` is set.
393
## E.g.
394
## key: "kubernetes.io/e2e-az-name"
395
##
396
key: ""
397
## @param primary.nodeAffinityPreset.values MariaDB primary node label values to match. Ignored if `primary.affinity` is set.
398
## E.g.
399
## values:
400
## - e2e-az1
401
## - e2e-az2
402
##
403
values: []
404
## @param primary.affinity Affinity for MariaDB primary pods assignment
405
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
406
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
407
##
408
affinity: {}
409
## @param primary.nodeSelector Node labels for MariaDB primary pods assignment
410
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
411
##
412
nodeSelector: {}
413
## @param primary.tolerations Tolerations for MariaDB primary pods assignment
414
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
415
##
416
tolerations: []
417
## @param primary.schedulerName Name of the k8s scheduler (other than default)
418
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
419
##
420
schedulerName: ""
421
## @param primary.terminationGracePeriodSeconds In seconds, time the given to the MySQL primary pod needs to terminate gracefully
422
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
423
##
424
terminationGracePeriodSeconds: ""
425
## @param primary.podManagementPolicy podManagementPolicy to manage scaling operation of MariaDB primary pods
426
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
427
##
428
podManagementPolicy: ""
429
## @param primary.topologySpreadConstraints Topology Spread Constraints for MariaDB primary pods assignment
430
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
431
## E.g.
432
## topologySpreadConstraints:
433
## - maxSkew: 1
434
## topologyKey: topology.kubernetes.io/zone
435
## whenUnsatisfiable: DoNotSchedule
436
##
437
topologySpreadConstraints: []
438
## @param primary.priorityClassName Priority class for MariaDB primary pods assignment
439
## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
440
##
441
priorityClassName: ""
442
## @param primary.runtimeClassName Runtime Class for MariaDB primary pods
443
## Ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
444
##
445
runtimeClassName: ""
446
## MariaDB primary Pod security context
447
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
448
## @param primary.podSecurityContext.enabled Enable security context for MariaDB primary pods
449
## @param primary.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
450
## @param primary.podSecurityContext.sysctls Set kernel settings using the sysctl interface
451
## @param primary.podSecurityContext.supplementalGroups Set filesystem extra groups
452
## @param primary.podSecurityContext.fsGroup Group ID for the mounted volumes' filesystem
453
##
454
podSecurityContext:
455
enabled: true
456
fsGroupChangePolicy: Always
457
sysctls: []
458
supplementalGroups: []
459
fsGroup: 1001
460
## MariaDB primary container security context
461
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
462
## @param primary.containerSecurityContext.enabled MariaDB primary container securityContext
463
## @param primary.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
464
## @param primary.containerSecurityContext.runAsUser User ID for the MariaDB primary container
465
## @param primary.containerSecurityContext.runAsGroup Group ID for the MariaDB primary container
466
## @param primary.containerSecurityContext.runAsNonRoot Set primary container's Security Context runAsNonRoot
467
## @param primary.containerSecurityContext.privileged Set primary container's Security Context privileged
468
## @param primary.containerSecurityContext.allowPrivilegeEscalation Set primary container's Security Context allowPrivilegeEscalation
469
## @param primary.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
470
## @param primary.containerSecurityContext.capabilities.drop List of capabilities to be dropped
471
## @param primary.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
472
##
473
containerSecurityContext:
474
enabled: true
475
seLinuxOptions: {}
476
runAsUser: 1001
477
runAsGroup: 1001
478
runAsNonRoot: true
479
privileged: false
480
allowPrivilegeEscalation: false
481
readOnlyRootFilesystem: true
482
capabilities:
483
drop: ["ALL"]
484
seccompProfile:
485
type: "RuntimeDefault"
486
## MariaDB primary init container security context
487
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
488
## @param primary.initContainerSecurityContext.enabled MariaDB primary init container securityContext
489
## @param primary.initContainerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in init container
490
## @param primary.initContainerSecurityContext.runAsUser User ID for the MariaDB primary init container
491
## @param primary.initContainerSecurityContext.runAsGroup Group ID for the MariaDB primary init container
492
## @param primary.initContainerSecurityContext.runAsNonRoot Set primary init container's Security Context runAsNonRoot
493
## @param primary.initContainerSecurityContext.privileged Set primary init container's Security Context privileged
494
## @param primary.initContainerSecurityContext.allowPrivilegeEscalation Set primary init container's Security Context allowPrivilegeEscalation
495
## @param primary.initContainerSecurityContext.readOnlyRootFilesystem Set init container's Security Context readOnlyRootFilesystem
496
## @param primary.initContainerSecurityContext.capabilities.drop List of capabilities to be dropped
497
## @param primary.initContainerSecurityContext.seccompProfile.type Set init container's Security Context seccomp profile
498
##
499
initContainerSecurityContext:
500
enabled: true
501
seLinuxOptions: {}
502
runAsUser: 1001
503
runAsGroup: 1001
504
runAsNonRoot: true
505
privileged: false
506
allowPrivilegeEscalation: false
507
readOnlyRootFilesystem: true
508
capabilities:
509
drop: ["ALL"]
510
seccompProfile:
511
type: "RuntimeDefault"
512
## MariaDB primary container's resource requests and limits
513
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
514
## We usually recommend not to specify default resources and to leave this as a conscious
515
## choice for the user. This also increases chances charts run on environments with little
516
## resources, such as Minikube. If you do want to specify resources, uncomment the following
517
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
518
## @param primary.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if primary.resources is set (primary.resources is recommended for production).
519
##
520
resourcesPreset: "small"
521
## @param primary.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
522
## Example:
523
## resources:
524
## requests:
525
## cpu: 2
526
## memory: 512Mi
527
## limits:
528
## cpu: 3
529
## memory: 1024Mi
530
##
531
resources: {}
532
## Configure extra options for MariaDB primary containers' liveness, readiness and startup probes
533
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
534
## @param primary.startupProbe.enabled Enable startupProbe
535
## @param primary.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
536
## @param primary.startupProbe.periodSeconds Period seconds for startupProbe
537
## @param primary.startupProbe.timeoutSeconds Timeout seconds for startupProbe
538
## @param primary.startupProbe.failureThreshold Failure threshold for startupProbe
539
## @param primary.startupProbe.successThreshold Success threshold for startupProbe
540
##
541
startupProbe:
542
enabled: false
543
initialDelaySeconds: 120
544
periodSeconds: 15
545
timeoutSeconds: 5
546
failureThreshold: 10
547
successThreshold: 1
548
## Configure extra options for liveness probe
549
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
550
## @param primary.livenessProbe.enabled Enable livenessProbe
551
## @param primary.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
552
## @param primary.livenessProbe.periodSeconds Period seconds for livenessProbe
553
## @param primary.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
554
## @param primary.livenessProbe.failureThreshold Failure threshold for livenessProbe
555
## @param primary.livenessProbe.successThreshold Success threshold for livenessProbe
556
##
557
livenessProbe:
558
enabled: true
559
initialDelaySeconds: 120
560
periodSeconds: 10
561
timeoutSeconds: 1
562
failureThreshold: 3
563
successThreshold: 1
564
## @param primary.readinessProbe.enabled Enable readinessProbe
565
## @param primary.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
566
## @param primary.readinessProbe.periodSeconds Period seconds for readinessProbe
567
## @param primary.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
568
## @param primary.readinessProbe.failureThreshold Failure threshold for readinessProbe
569
## @param primary.readinessProbe.successThreshold Success threshold for readinessProbe
570
##
571
readinessProbe:
572
enabled: true
573
initialDelaySeconds: 30
574
periodSeconds: 10
575
timeoutSeconds: 1
576
failureThreshold: 3
577
successThreshold: 1
578
## @param primary.customStartupProbe Override default startup probe for MariaDB primary containers
579
##
580
customStartupProbe: {}
581
## @param primary.customLivenessProbe Override default liveness probe for MariaDB primary containers
582
##
583
customLivenessProbe: {}
584
## @param primary.customReadinessProbe Override default readiness probe for MariaDB primary containers
585
##
586
customReadinessProbe: {}
587
## @param primary.startupWaitOptions Override default builtin startup wait check options for MariaDB primary containers
588
## `iamguarded/mariadb` Docker image has built-in startup check mechanism,
589
## which periodically checks if MariaDB service has started up and stops it
590
## if all checks have failed after X tries. Use these to control these checks.
591
## Example (with default options):
592
## startupWaitOptions:
593
## retries: 300
594
## waitTime: 2
595
##
596
startupWaitOptions: {}
597
## @param primary.extraFlags MariaDB primary additional command line flags
598
## Can be used to specify command line flags, for example:
599
## E.g.
600
## extraFlags: "--max-connect-errors=1000 --max_connections=155"
601
##
602
extraFlags: ""
603
## @param primary.extraEnvVars Extra environment variables to be set on MariaDB primary containers
604
## E.g.
605
## extraEnvVars:
606
## - name: TZ
607
## value: "Europe/Paris"
608
##
609
extraEnvVars: []
610
## @param primary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for MariaDB primary containers
611
##
612
extraEnvVarsCM: ""
613
## @param primary.extraEnvVarsSecret Name of existing Secret containing extra env vars for MariaDB primary containers
614
##
615
extraEnvVarsSecret: ""
616
## Enable persistence using Persistent Volume Claims
617
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
618
##
619
persistence:
620
## @param primary.persistence.enabled Enable persistence on MariaDB primary replicas using a `PersistentVolumeClaim`. If false, use emptyDir
621
##
622
enabled: true
623
## @param primary.persistence.existingClaim Name of an existing `PersistentVolumeClaim` for MariaDB primary replicas
624
## NOTE: When it's set the rest of persistence parameters are ignored
625
##
626
existingClaim: ""
627
## @param primary.persistence.subPath Subdirectory of the volume to mount at
628
##
629
subPath: ""
630
## @param primary.persistence.storageClass MariaDB primary persistent volume storage Class
631
## If defined, storageClassName: <storageClass>
632
## If set to "-", storageClassName: "", which disables dynamic provisioning
633
## If undefined (the default) or set to null, no storageClassName spec is
634
## set, choosing the default provisioner. (gp2 on AWS, standard on
635
## GKE, AWS & OpenStack)
636
##
637
storageClass: ""
638
## @param primary.persistence.labels Labels for the PVC
639
##
640
labels: {}
641
## @param primary.persistence.annotations MariaDB primary persistent volume claim annotations
642
##
643
annotations: {}
644
## @param primary.persistence.accessModes MariaDB primary persistent volume access Modes
645
##
646
accessModes:
647
- ReadWriteOnce
648
## @param primary.persistence.size MariaDB primary persistent volume size
649
##
650
size: 8Gi
651
## @param primary.persistence.selector Selector to match an existing Persistent Volume
652
## selector:
653
## matchLabels:
654
## app: my-app
655
##
656
selector: {}
657
## @param primary.extraVolumes Optionally specify extra list of additional volumes to the MariaDB Primary pod(s)
658
##
659
extraVolumes: []
660
## @param primary.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the MariaDB Primary container(s)
661
##
662
extraVolumeMounts: []
663
## @param primary.initContainers Add additional init containers for the MariaDB Primary pod(s)
664
##
665
initContainers: []
666
## @param primary.sidecars Add additional sidecar containers for the MariaDB Primary pod(s)
667
##
668
sidecars: []
669
## MariaDB Primary Service parameters
670
##
671
service:
672
## @param primary.service.type MariaDB Primary Kubernetes service type
673
##
674
type: ClusterIP
675
ports:
676
## @param primary.service.ports.mysql MariaDB Primary Kubernetes service port for MariaDB
677
##
678
mysql: 3306
679
## @param primary.service.ports.metrics MariaDB Primary Kubernetes service port for metrics
680
##
681
metrics: 9104
682
## @param primary.service.nodePorts.mysql MariaDB Primary Kubernetes service node port
683
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
684
##
685
nodePorts:
686
mysql: ""
687
## @param primary.service.clusterIP MariaDB Primary Kubernetes service clusterIP IP
688
##
689
clusterIP: ""
690
## @param primary.service.loadBalancerIP MariaDB Primary loadBalancerIP if service type is `LoadBalancer`
691
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
692
##
693
loadBalancerIP: ""
694
## @param primary.service.externalTrafficPolicy Enable client source IP preservation
695
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
696
##
697
externalTrafficPolicy: Cluster
698
## @param primary.service.loadBalancerSourceRanges Address that are allowed when MariaDB Primary service is LoadBalancer
699
## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
700
## E.g.
701
## loadBalancerSourceRanges:
702
## - 10.10.10.0/24
703
##
704
loadBalancerSourceRanges: []
705
## @param primary.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
706
##
707
extraPorts: []
708
## @param primary.service.annotations Provide any additional annotations which may be required
709
##
710
annotations: {}
711
## @param primary.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
712
## If "ClientIP", consecutive client requests will be directed to the same Pod
713
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
714
##
715
sessionAffinity: None
716
## @param primary.service.sessionAffinityConfig Additional settings for the sessionAffinity
717
## sessionAffinityConfig:
718
## clientIP:
719
## timeoutSeconds: 300
720
##
721
sessionAffinityConfig: {}
722
## @param primary.service.headless.annotations Annotations of the headless service
723
##
724
headless:
725
annotations: {}
726
## MariaDB primary Pod Disruption Budget configuration
727
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
728
##
729
pdb:
730
## @param primary.pdb.create Enable/disable a Pod Disruption Budget creation for MariaDB primary pods
731
##
732
create: true
733
## @param primary.pdb.minAvailable Minimum number/percentage of MariaDB primary pods that must still be available after the eviction
734
##
735
minAvailable: ""
736
## @param primary.pdb.maxUnavailable Maximum number/percentage of MariaDB primary pods that can be unavailable after the eviction. Defaults to `1` if both `primary.pdb.minAvailable` and `primary.pdb.maxUnavailable` are empty.
737
##
738
maxUnavailable: ""
739
## @param primary.revisionHistoryLimit Maximum number of revisions that will be maintained in the StatefulSet
740
##
741
revisionHistoryLimit: 10
742
## @section MariaDB Secondary parameters
743
##
744
745
## Mariadb Secondary parameters
746
##
747
secondary:
748
## @param secondary.name Name of the secondary database (eg secondary, slave, ...)
749
##
750
name: secondary
751
## @param secondary.replicaCount Number of MariaDB secondary replicas
752
##
753
replicaCount: 1
754
## @param secondary.command Override default container command on MariaDB Secondary container(s) (useful when using custom images)
755
##
756
command: []
757
## @param secondary.args Override default container args on MariaDB Secondary container(s) (useful when using custom images)
758
##
759
args: []
760
## @param secondary.lifecycleHooks for the MariaDB Secondary container(s) to automate configuration before or after startup
761
##
762
lifecycleHooks: {}
763
## @param secondary.automountServiceAccountToken Mount Service Account token in pod
764
##
765
automountServiceAccountToken: false
766
## @param secondary.hostAliases Add deployment host aliases
767
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
768
##
769
hostAliases: []
770
## @param secondary.containerPorts.mysql Container port for mysql
771
##
772
containerPorts:
773
mysql: 3306
774
## @param secondary.configuration [string] MariaDB Secondary configuration to be injected as ConfigMap
775
## ref: https://mysql.com/kb/en/mysql/configuring-mysql-with-mycnf/#example-of-configuration-file
776
##
777
configuration: |-
778
[mysqld]
779
skip-name-resolve
780
explicit_defaults_for_timestamp
781
basedir=/opt/iamguarded/mariadb
782
datadir=/iamguarded/mariadb/data
783
port={{ .Values.secondary.containerPorts.mysql }}
784
socket=/opt/iamguarded/mariadb/tmp/mysql.sock
785
tmpdir=/opt/iamguarded/mariadb/tmp
786
max_allowed_packet=16M
787
bind-address=0.0.0.0
788
pid-file=/opt/iamguarded/mariadb/tmp/mysqld.pid
789
log-error=/opt/iamguarded/mariadb/logs/mysqld.log
790
character-set-server=UTF8
791
collation-server=utf8_general_ci
792
slow_query_log=0
793
long_query_time=10.0
794
binlog_expire_logs_seconds=2592000
795
{{- if .Values.tls.enabled }}
796
ssl_cert=/opt/iamguarded/mariadb/certs/{{ .Values.tls.certFilename }}
797
ssl_key=/opt/iamguarded/mariadb/certs/{{ .Values.tls.certKeyFilename }}
798
{{- if (include "mariadb.tlsCACert" .) }}
799
ssl_ca={{ include "mariadb.tlsCACert" . }}
800
{{- end }}
801
{{- end }}
802
803
[client]
804
port=3306
805
socket=/opt/iamguarded/mariadb/tmp/mysql.sock
806
default-character-set=UTF8
807
808
[manager]
809
port=3306
810
socket=/opt/iamguarded/mariadb/tmp/mysql.sock
811
pid-file=/opt/iamguarded/mariadb/tmp/mysqld.pid
812
## @param secondary.existingConfigmap Name of existing ConfigMap with MariaDB Secondary configuration.
813
## NOTE: When it's set the 'configuration' parameter is ignored
814
##
815
existingConfigmap: ""
816
## @param secondary.updateStrategy.type MariaDB secondary statefulset strategy type
817
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
818
##
819
updateStrategy:
820
## StrategyType
821
## Can be set to RollingUpdate or OnDelete
822
##
823
type: RollingUpdate
824
## @param secondary.rollingUpdatePartition Partition update strategy for Mariadb Secondary statefulset
825
## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
826
##
827
rollingUpdatePartition: ""
828
## @param secondary.podAnnotations Additional pod annotations for MariaDB secondary pods
829
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
830
##
831
podAnnotations: {}
832
## @param secondary.podLabels Extra labels for MariaDB secondary pods
833
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
834
##
835
podLabels: {}
836
## @param secondary.podAffinityPreset MariaDB secondary pod affinity preset. Ignored if `secondary.affinity` is set. Allowed values: `soft` or `hard`
837
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
838
##
839
podAffinityPreset: ""
840
## @param secondary.podAntiAffinityPreset MariaDB secondary pod anti-affinity preset. Ignored if `secondary.affinity` is set. Allowed values: `soft` or `hard`
841
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
842
##
843
podAntiAffinityPreset: soft
844
## Mariadb Secondary node affinity preset
845
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
846
##
847
nodeAffinityPreset:
848
## @param secondary.nodeAffinityPreset.type MariaDB secondary node affinity preset type. Ignored if `secondary.affinity` is set. Allowed values: `soft` or `hard`
849
##
850
type: ""
851
## @param secondary.nodeAffinityPreset.key MariaDB secondary node label key to match Ignored if `secondary.affinity` is set.
852
## E.g.
853
## key: "kubernetes.io/e2e-az-name"
854
##
855
key: ""
856
## @param secondary.nodeAffinityPreset.values MariaDB secondary node label values to match. Ignored if `secondary.affinity` is set.
857
## E.g.
858
## values:
859
## - e2e-az1
860
## - e2e-az2
861
##
862
values: []
863
## @param secondary.affinity Affinity for MariaDB secondary pods assignment
864
## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
865
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
866
##
867
affinity: {}
868
## @param secondary.nodeSelector Node labels for MariaDB secondary pods assignment
869
## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
870
##
871
nodeSelector: {}
872
## @param secondary.tolerations Tolerations for MariaDB secondary pods assignment
873
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
874
##
875
tolerations: []
876
## @param secondary.topologySpreadConstraints Topology Spread Constraints for MariaDB secondary pods assignment
877
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
878
## E.g.
879
## topologySpreadConstraints:
880
## - maxSkew: 1
881
## topologyKey: topology.kubernetes.io/zone
882
## whenUnsatisfiable: DoNotSchedule
883
##
884
topologySpreadConstraints: []
885
## @param secondary.priorityClassName Priority class for MariaDB secondary pods assignment
886
## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
887
##
888
priorityClassName: ""
889
## @param secondary.runtimeClassName Runtime Class for MariaDB secondary pods
890
## Ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
891
##
892
runtimeClassName: ""
893
## @param secondary.schedulerName Name of the k8s scheduler (other than default)
894
## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
895
##
896
schedulerName: ""
897
## @param secondary.terminationGracePeriodSeconds In seconds, time the given to the MySQL secondary pod needs to terminate gracefully
898
## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
899
##
900
terminationGracePeriodSeconds: ""
901
## @param secondary.podManagementPolicy podManagementPolicy to manage scaling operation of MariaDB secondary pods
902
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
903
##
904
podManagementPolicy: ""
905
## MariaDB secondary Pod security context
906
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
907
## @param secondary.podSecurityContext.enabled Enable security context for MariaDB secondary pods
908
## @param secondary.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
909
## @param secondary.podSecurityContext.sysctls Set kernel settings using the sysctl interface
910
## @param secondary.podSecurityContext.supplementalGroups Set filesystem extra groups
911
## @param secondary.podSecurityContext.fsGroup Group ID for the mounted volumes' filesystem
912
##
913
podSecurityContext:
914
enabled: true
915
fsGroupChangePolicy: Always
916
sysctls: []
917
supplementalGroups: []
918
fsGroup: 1001
919
## MariaDB secondary container security context
920
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
921
## @param secondary.containerSecurityContext.enabled MariaDB secondary container securityContext
922
## @param secondary.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
923
## @param secondary.containerSecurityContext.runAsUser User ID for the MariaDB secondary container
924
## @param secondary.containerSecurityContext.runAsGroup Group ID for the MariaDB secondary container
925
## @param secondary.containerSecurityContext.runAsNonRoot Set secondary container's Security Context runAsNonRoot
926
## @param secondary.containerSecurityContext.privileged Set secondary container's Security Context privileged
927
## @param secondary.containerSecurityContext.allowPrivilegeEscalation Set secondary container's Security Context allowPrivilegeEscalation
928
## @param secondary.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
929
## @param secondary.containerSecurityContext.capabilities.drop List of capabilities to be dropped
930
## @param secondary.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
931
##
932
containerSecurityContext:
933
enabled: true
934
seLinuxOptions: {}
935
runAsUser: 1001
936
runAsGroup: 1001
937
runAsNonRoot: true
938
privileged: false
939
allowPrivilegeEscalation: false
940
readOnlyRootFilesystem: true
941
capabilities:
942
drop: ["ALL"]
943
seccompProfile:
944
type: "RuntimeDefault"
945
## MariaDB secondary container's resource requests and limits
946
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
947
## We usually recommend not to specify default resources and to leave this as a conscious
948
## choice for the user. This also increases chances charts run on environments with little
949
## resources, such as Minikube. If you do want to specify resources, uncomment the following
950
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
951
## @param secondary.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if secondary.resources is set (secondary.resources is recommended for production).
952
##
953
resourcesPreset: "small"
954
## @param secondary.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
955
## Example:
956
## resources:
957
## requests:
958
## cpu: 2
959
## memory: 512Mi
960
## limits:
961
## cpu: 3
962
## memory: 1024Mi
963
##
964
resources: {}
965
## Configure extra options for MariaDB Secondary containers' liveness, readiness and startup probes
966
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
967
## @param secondary.startupProbe.enabled Enable startupProbe
968
## @param secondary.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
969
## @param secondary.startupProbe.periodSeconds Period seconds for startupProbe
970
## @param secondary.startupProbe.timeoutSeconds Timeout seconds for startupProbe
971
## @param secondary.startupProbe.failureThreshold Failure threshold for startupProbe
972
## @param secondary.startupProbe.successThreshold Success threshold for startupProbe
973
##
974
startupProbe:
975
enabled: false
976
initialDelaySeconds: 120
977
periodSeconds: 15
978
timeoutSeconds: 5
979
failureThreshold: 10
980
successThreshold: 1
981
## Configure extra options for liveness probe
982
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
983
## @param secondary.livenessProbe.enabled Enable livenessProbe
984
## @param secondary.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
985
## @param secondary.livenessProbe.periodSeconds Period seconds for livenessProbe
986
## @param secondary.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
987
## @param secondary.livenessProbe.failureThreshold Failure threshold for livenessProbe
988
## @param secondary.livenessProbe.successThreshold Success threshold for livenessProbe
989
##
990
livenessProbe:
991
enabled: true
992
initialDelaySeconds: 120
993
periodSeconds: 10
994
timeoutSeconds: 1
995
failureThreshold: 3
996
successThreshold: 1
997
## @param secondary.readinessProbe.enabled Enable readinessProbe
998
## @param secondary.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
999
## @param secondary.readinessProbe.periodSeconds Period seconds for readinessProbe
1000
## @param secondary.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1001
## @param secondary.readinessProbe.failureThreshold Failure threshold for readinessProbe
1002
## @param secondary.readinessProbe.successThreshold Success threshold for readinessProbe
1003
##
1004
readinessProbe:
1005
enabled: true
1006
initialDelaySeconds: 30
1007
periodSeconds: 10
1008
timeoutSeconds: 1
1009
failureThreshold: 3
1010
successThreshold: 1
1011
## @param secondary.customStartupProbe Override default startup probe for MariaDB secondary containers
1012
##
1013
customStartupProbe: {}
1014
## @param secondary.customLivenessProbe Override default liveness probe for MariaDB secondary containers
1015
##
1016
customLivenessProbe: {}
1017
## @param secondary.customReadinessProbe Override default readiness probe for MariaDB secondary containers
1018
##
1019
customReadinessProbe: {}
1020
## @param secondary.startupWaitOptions Override default builtin startup wait check options for MariaDB secondary containers
1021
## `iamguarded/mariadb` Docker image has built-in startup check mechanism,
1022
## which periodically checks if MariaDB service has started up and stops it
1023
## if all checks have failed after X tries. Use these to control these checks.
1024
## Example (with default options):
1025
## startupWaitOptions:
1026
## retries: 300
1027
## waitTime: 2
1028
##
1029
startupWaitOptions: {}
1030
## @param secondary.extraFlags MariaDB secondary additional command line flags
1031
## Can be used to specify command line flags, for example:
1032
## E.g.
1033
## extraFlags: "--max-connect-errors=1000 --max_connections=155"
1034
##
1035
extraFlags: ""
1036
## @param secondary.extraEnvVars Extra environment variables to be set on MariaDB secondary containers
1037
## E.g.
1038
## extraEnvVars:
1039
## - name: TZ
1040
## value: "Europe/Paris"
1041
##
1042
extraEnvVars: []
1043
## @param secondary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for MariaDB secondary containers
1044
##
1045
extraEnvVarsCM: ""
1046
## @param secondary.extraEnvVarsSecret Name of existing Secret containing extra env vars for MariaDB secondary containers
1047
##
1048
extraEnvVarsSecret: ""
1049
## Enable persistence using Persistent Volume Claims
1050
## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1051
##
1052
persistence:
1053
## @param secondary.persistence.enabled Enable persistence on MariaDB secondary replicas using a `PersistentVolumeClaim`
1054
##
1055
enabled: true
1056
## @param secondary.persistence.subPath Subdirectory of the volume to mount at
1057
##
1058
subPath: ""
1059
## @param secondary.persistence.storageClass MariaDB secondary persistent volume storage Class
1060
## If defined, storageClassName: <storageClass>
1061
## If set to "-", storageClassName: "", which disables dynamic provisioning
1062
## If undefined (the default) or set to null, no storageClassName spec is
1063
## set, choosing the default provisioner. (gp2 on AWS, standard on
1064
## GKE, AWS & OpenStack)
1065
##
1066
storageClass: ""
1067
## @param secondary.persistence.labels Labels for the PVC
1068
##
1069
labels: {}
1070
## @param secondary.persistence.annotations MariaDB secondary persistent volume claim annotations
1071
##
1072
annotations: {}
1073
## @param secondary.persistence.accessModes MariaDB secondary persistent volume access Modes
1074
##
1075
accessModes:
1076
- ReadWriteOnce
1077
## @param secondary.persistence.size MariaDB secondary persistent volume size
1078
##
1079
size: 8Gi
1080
## @param secondary.persistence.selector Selector to match an existing Persistent Volume
1081
## selector:
1082
## matchLabels:
1083
## app: my-app
1084
##
1085
selector: {}
1086
## @param secondary.extraVolumes Optionally specify extra list of additional volumes to the MariaDB secondary pod(s)
1087
##
1088
extraVolumes: []
1089
## @param secondary.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the MariaDB secondary container(s)
1090
##
1091
extraVolumeMounts: []
1092
## @param secondary.initContainers Add additional init containers for the MariaDB secondary pod(s)
1093
##
1094
initContainers: []
1095
## @param secondary.sidecars Add additional sidecar containers for the MariaDB secondary pod(s)
1096
##
1097
sidecars: []
1098
## MariaDB Secondary Service parameters
1099
##
1100
service:
1101
## @param secondary.service.type MariaDB secondary Kubernetes service type
1102
##
1103
type: ClusterIP
1104
ports:
1105
## @param secondary.service.ports.mysql MariaDB secondary Kubernetes service port for MariaDB
1106
##
1107
mysql: 3306
1108
## @param secondary.service.ports.metrics MariaDB secondary Kubernetes service port for metrics
1109
##
1110
metrics: 9104
1111
## @param secondary.service.nodePorts.mysql MariaDB secondary Kubernetes service node port
1112
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1113
##
1114
nodePorts:
1115
mysql: ""
1116
## @param secondary.service.clusterIP MariaDB secondary Kubernetes service clusterIP IP
1117
## e.g:
1118
## clusterIP: None
1119
##
1120
clusterIP: ""
1121
## @param secondary.service.loadBalancerIP MariaDB secondary loadBalancerIP if service type is `LoadBalancer`
1122
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1123
##
1124
loadBalancerIP: ""
1125
## @param secondary.service.externalTrafficPolicy Enable client source IP preservation
1126
## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1127
##
1128
externalTrafficPolicy: Cluster
1129
## @param secondary.service.loadBalancerSourceRanges Address that are allowed when MariaDB secondary service is LoadBalancer
1130
## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1131
## E.g.
1132
## loadBalancerSourceRanges:
1133
## - 10.10.10.0/24
1134
##
1135
loadBalancerSourceRanges: []
1136
## @param secondary.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1137
##
1138
extraPorts: []
1139
## @param secondary.service.annotations Provide any additional annotations which may be required
1140
##
1141
annotations: {}
1142
## @param secondary.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1143
## If "ClientIP", consecutive client requests will be directed to the same Pod
1144
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1145
##
1146
sessionAffinity: None
1147
## @param secondary.service.sessionAffinityConfig Additional settings for the sessionAffinity
1148
## sessionAffinityConfig:
1149
## clientIP:
1150
## timeoutSeconds: 300
1151
##
1152
sessionAffinityConfig: {}
1153
## MariaDB secondary Pod Disruption Budget configuration
1154
## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
1155
##
1156
pdb:
1157
## @param secondary.pdb.create Enable/disable a Pod Disruption Budget creation for MariaDB secondary pods
1158
##
1159
create: true
1160
## @param secondary.pdb.minAvailable Minimum number/percentage of MariaDB secondary pods that should remain scheduled
1161
##
1162
minAvailable: ""
1163
## @param secondary.pdb.maxUnavailable Maximum number/percentage of MariaDB secondary pods that may be made unavailable. Defaults to `1` if both `secondary.pdb.minAvailable` and `secondary.pdb.maxUnavailable` are empty.
1164
##
1165
maxUnavailable: ""
1166
## @param secondary.revisionHistoryLimit Maximum number of revisions that will be maintained in the StatefulSet
1167
##
1168
revisionHistoryLimit: 10
1169
## @section RBAC parameters
1170
##
1171
1172
## MariaDB pods ServiceAccount
1173
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1174
##
1175
serviceAccount:
1176
## @param serviceAccount.create Enable the creation of a ServiceAccount for MariaDB pods
1177
##
1178
create: true
1179
## @param serviceAccount.name Name of the created ServiceAccount
1180
## If not set and create is true, a name is generated using the mariadb.fullname template
1181
##
1182
name: ""
1183
## @param serviceAccount.annotations Annotations for MariaDB Service Account
1184
##
1185
annotations: {}
1186
## @param serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1187
##
1188
automountServiceAccountToken: false
1189
## Role Based Access
1190
## ref: https://kubernetes.io/docs/admin/authorization/rbac/
1191
##
1192
rbac:
1193
## @param rbac.create Whether to create and use RBAC resources or not
1194
##
1195
create: false
1196
## @section Password update job
1197
##
1198
passwordUpdateJob:
1199
## @param passwordUpdateJob.enabled Enable password update job
1200
##
1201
enabled: false
1202
## @param passwordUpdateJob.backoffLimit set backoff limit of the job
1203
##
1204
backoffLimit: 10
1205
## @param passwordUpdateJob.command Override default container command on MariaDB Primary container(s) (useful when using custom images)
1206
##
1207
command: []
1208
## @param passwordUpdateJob.args Override default container args on MariaDB Primary container(s) (useful when using custom images)
1209
##
1210
args: []
1211
## @param passwordUpdateJob.extraCommands Extra commands to pass to the generation job
1212
##
1213
extraCommands: ""
1214
## @param passwordUpdateJob.previousPasswords.rootPassword Previous root password (set if the password secret was already changed)
1215
## @param passwordUpdateJob.previousPasswords.password Previous password (set if the password secret was already changed)
1216
## @param passwordUpdateJob.previousPasswords.replicationPassword Previous replication password (set if the password secret was already changed)
1217
## @param passwordUpdateJob.previousPasswords.existingSecret Name of a secret containing the previous passwords (set if the password secret was already changed)
1218
previousPasswords:
1219
rootPassword: ""
1220
password: ""
1221
replicationPassword: ""
1222
existingSecret: ""
1223
## Configure Container Security Context
1224
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1225
## @param passwordUpdateJob.containerSecurityContext.enabled Enabled containers' Security Context
1226
## @param passwordUpdateJob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1227
## @param passwordUpdateJob.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1228
## @param passwordUpdateJob.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1229
## @param passwordUpdateJob.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1230
## @param passwordUpdateJob.containerSecurityContext.privileged Set container's Security Context privileged
1231
## @param passwordUpdateJob.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1232
## @param passwordUpdateJob.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1233
## @param passwordUpdateJob.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1234
## @param passwordUpdateJob.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1235
##
1236
containerSecurityContext:
1237
enabled: true
1238
seLinuxOptions: {}
1239
runAsUser: 1001
1240
runAsGroup: 1001
1241
runAsNonRoot: true
1242
privileged: false
1243
readOnlyRootFilesystem: true
1244
allowPrivilegeEscalation: false
1245
capabilities:
1246
drop: ["ALL"]
1247
seccompProfile:
1248
type: "RuntimeDefault"
1249
## Configure Pods Security Context
1250
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1251
## @param passwordUpdateJob.podSecurityContext.enabled Enabled credential init job pods' Security Context
1252
## @param passwordUpdateJob.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1253
## @param passwordUpdateJob.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1254
## @param passwordUpdateJob.podSecurityContext.supplementalGroups Set filesystem extra groups
1255
## @param passwordUpdateJob.podSecurityContext.fsGroup Set credential init job pod's Security Context fsGroup
1256
##
1257
podSecurityContext:
1258
enabled: true
1259
fsGroupChangePolicy: Always
1260
sysctls: []
1261
supplementalGroups: []
1262
fsGroup: 1001
1263
## @param passwordUpdateJob.extraEnvVars Array containing extra env vars to configure the credential init job
1264
## For example:
1265
## extraEnvVars:
1266
## - name: GF_DEFAULT_INSTANCE_NAME
1267
## value: my-instance
1268
##
1269
extraEnvVars: []
1270
## @param passwordUpdateJob.extraEnvVarsCM ConfigMap containing extra env vars to configure the credential init job
1271
##
1272
extraEnvVarsCM: ""
1273
## @param passwordUpdateJob.extraEnvVarsSecret Secret containing extra env vars to configure the credential init job (in case of sensitive data)
1274
##
1275
extraEnvVarsSecret: ""
1276
## @param passwordUpdateJob.extraVolumes Optionally specify extra list of additional volumes for the credential init job
1277
##
1278
extraVolumes: []
1279
## @param passwordUpdateJob.extraVolumeMounts Array of extra volume mounts to be added to the jwt Container (evaluated as template). Normally used with `extraVolumes`.
1280
##
1281
extraVolumeMounts: []
1282
## @param passwordUpdateJob.initContainers Add additional init containers for the MariaDB Primary pod(s)
1283
##
1284
initContainers: []
1285
## Container resource requests and limits
1286
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1287
## @param passwordUpdateJob.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if passwordUpdateJob.resources is set (passwordUpdateJob.resources is recommended for production).
1288
##
1289
resourcesPreset: "micro"
1290
## @param passwordUpdateJob.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1291
## Example:
1292
## resources:
1293
## requests:
1294
## cpu: 2
1295
## memory: 512Mi
1296
## limits:
1297
## cpu: 3
1298
## memory: 1024Mi
1299
##
1300
resources: {}
1301
## @param passwordUpdateJob.customLivenessProbe Custom livenessProbe that overrides the default one
1302
##
1303
customLivenessProbe: {}
1304
## @param passwordUpdateJob.customReadinessProbe Custom readinessProbe that overrides the default one
1305
##
1306
customReadinessProbe: {}
1307
## @param passwordUpdateJob.customStartupProbe Custom startupProbe that overrides the default one
1308
##
1309
customStartupProbe: {}
1310
## @param passwordUpdateJob.automountServiceAccountToken Mount Service Account token in pod
1311
##
1312
automountServiceAccountToken: false
1313
## @param passwordUpdateJob.hostAliases Add deployment host aliases
1314
## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1315
##
1316
hostAliases: []
1317
## @param passwordUpdateJob.annotations [object] Add annotations to the job
1318
##
1319
annotations: {}
1320
## @param passwordUpdateJob.podLabels Additional pod labels
1321
## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1322
##
1323
podLabels: {}
1324
## @param passwordUpdateJob.podAnnotations Additional pod annotations
1325
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1326
##
1327
podAnnotations: {}
1328
## @section Volume Permissions parameters
1329
##
1330
1331
## Init containers parameters:
1332
## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
1333
##
1334
volumePermissions:
1335
## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume(s) mountpoint to `runAsUser:fsGroup`
1336
##
1337
enabled: false
1338
## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
1339
## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
1340
## @skip volumePermissions.image.tag Init container volume-permissions image tag (immutable tags are recommended)
1341
## @param volumePermissions.image.digest Init container volume-permissions image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1342
## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
1343
## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
1344
##
1345
image:
1346
registry: cgr.dev
1347
repository: chainguard-private/os-shell-iamguarded
1348
tag: 1.0.0
1349
digest: ""
1350
pullPolicy: IfNotPresent
1351
## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
1352
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1353
## Example:
1354
## pullSecrets:
1355
## - myRegistryKeySecretName
1356
##
1357
pullSecrets: []
1358
## @param volumePermissions.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if volumePermissions.resources is set (volumePermissions.resources is recommended for production).
1359
##
1360
resourcesPreset: "nano"
1361
## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1362
## Example:
1363
## resources:
1364
## requests:
1365
## cpu: 2
1366
## memory: 512Mi
1367
## limits:
1368
## cpu: 3
1369
## memory: 1024Mi
1370
##
1371
resources: {}
1372
## @section Metrics parameters
1373
##
1374
1375
## Mysqld Prometheus exporter parameters
1376
##
1377
metrics:
1378
## @param metrics.enabled Start a side-car prometheus exporter
1379
##
1380
enabled: false
1381
## @param metrics.image.registry [default: REGISTRY_NAME] Exporter image registry
1382
## @param metrics.image.repository [default: REPOSITORY_NAME/mysqld-exporter] Exporter image repository
1383
## @skip metrics.image.tag Exporter image tag (immutable tags are recommended)
1384
## @param metrics.image.digest Exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1385
## @param metrics.image.pullPolicy Exporter image pull policy
1386
## @param metrics.image.pullSecrets Specify docker-registry secret names as an array
1387
##
1388
image:
1389
registry: cgr.dev
1390
repository: chainguard-private/prometheus-mysqld-exporter-iamguarded
1391
tag: 0.21.0
1392
digest: ""
1393
pullPolicy: IfNotPresent
1394
## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
1395
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1396
## Example:
1397
## pullSecrets:
1398
## - myRegistryKeySecretName
1399
##
1400
pullSecrets: []
1401
## @param metrics.annotations [object] Annotations for the Exporter pod
1402
##
1403
annotations:
1404
prometheus.io/scrape: "true"
1405
prometheus.io/port: "9104"
1406
## @param metrics.extraArgs [object] Extra args to be passed to mysqld_exporter
1407
## ref: https://github.com/prometheus/mysqld_exporter/
1408
## E.g.
1409
## - --collect.auto_increment.columns
1410
## - --collect.binlog_size
1411
## - --collect.engine_innodb_status
1412
## - --collect.engine_tokudb_status
1413
## - --collect.global_status
1414
## - --collect.global_variables
1415
## - --collect.info_schema.clientstats
1416
## - --collect.info_schema.innodb_metrics
1417
## - --collect.info_schema.innodb_tablespaces
1418
## - --collect.info_schema.innodb_cmp
1419
## - --collect.info_schema.innodb_cmpmem
1420
## - --collect.info_schema.processlist
1421
## - --collect.info_schema.processlist.min_time
1422
## - --collect.info_schema.query_response_time
1423
## - --collect.info_schema.tables
1424
## - --collect.info_schema.tables.databases
1425
## - --collect.info_schema.tablestats
1426
## - --collect.info_schema.userstats
1427
## - --collect.perf_schema.eventsstatements
1428
## - --collect.perf_schema.eventsstatements.digest_text_limit
1429
## - --collect.perf_schema.eventsstatements.limit
1430
## - --collect.perf_schema.eventsstatements.timelimit
1431
## - --collect.perf_schema.eventswaits
1432
## - --collect.perf_schema.file_events
1433
## - --collect.perf_schema.file_instances
1434
## - --collect.perf_schema.indexiowaits
1435
## - --collect.perf_schema.tableiowaits
1436
## - --collect.perf_schema.tablelocks
1437
## - --collect.perf_schema.replication_group_member_stats
1438
## - --collect.slave_status
1439
## - --collect.slave_hosts
1440
## - --collect.heartbeat
1441
## - --collect.heartbeat.database
1442
## - --collect.heartbeat.table
1443
##
1444
extraArgs:
1445
primary: []
1446
secondary: []
1447
## @param metrics.extraVolumeMounts [object] Optionally specify extra list of additional volumeMounts for the MariaDB metrics container(s)
1448
##
1449
extraVolumeMounts:
1450
primary: []
1451
secondary: []
1452
## @param metrics.containerPorts.http Container port for http
1453
##
1454
containerPorts:
1455
http: 9104
1456
## MariaDB metrics container Security Context
1457
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1458
## @param metrics.containerSecurityContext.enabled Enable security context for MariaDB metrics container
1459
## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1460
## @param metrics.containerSecurityContext.runAsUser User ID for the MariaDB metrics container
1461
## @param metrics.containerSecurityContext.runAsGroup Group ID for the MariaDB metrics container
1462
## @param metrics.containerSecurityContext.runAsNonRoot Set metrics container's Security Context runAsNonRoot
1463
## @param metrics.containerSecurityContext.privileged Set metrics container's Security Context privileged
1464
## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set metrics container's Security Context allowPrivilegeEscalation
1465
## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1466
## @param metrics.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1467
## @param metrics.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1468
## Example:
1469
## containerSecurityContext:
1470
## enabled: true
1471
## capabilities:
1472
## drop: ["NET_RAW"]
1473
## readOnlyRootFilesystem: true
1474
##
1475
containerSecurityContext:
1476
enabled: false
1477
privileged: false
1478
runAsNonRoot: true
1479
seLinuxOptions: {}
1480
runAsUser: 1001
1481
runAsGroup: 1001
1482
readOnlyRootFilesystem: true
1483
allowPrivilegeEscalation: false
1484
capabilities:
1485
drop: ["ALL"]
1486
seccompProfile:
1487
type: "RuntimeDefault"
1488
## Mysqld Prometheus exporter resource requests and limits
1489
## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1490
## We usually recommend not to specify default resources and to leave this as a conscious
1491
## choice for the user. This also increases chances charts run on environments with little
1492
## resources, such as Minikube. If you do want to specify resources, uncomment the following
1493
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1494
## @param metrics.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if metrics.resources is set (metrics.resources is recommended for production).
1495
##
1496
resourcesPreset: "nano"
1497
## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1498
## Example:
1499
## resources:
1500
## requests:
1501
## cpu: 2
1502
## memory: 512Mi
1503
## limits:
1504
## cpu: 3
1505
## memory: 1024Mi
1506
##
1507
resources: {}
1508
## Configure extra options for liveness probe
1509
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
1510
## @param metrics.livenessProbe.enabled Enable livenessProbe
1511
## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1512
## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
1513
## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1514
## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
1515
## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
1516
##
1517
livenessProbe:
1518
enabled: true
1519
initialDelaySeconds: 120
1520
periodSeconds: 10
1521
timeoutSeconds: 1
1522
successThreshold: 1
1523
failureThreshold: 3
1524
## Configure extra options for readiness probe
1525
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
1526
## @param metrics.readinessProbe.enabled Enable readinessProbe
1527
## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1528
## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
1529
## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1530
## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
1531
## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
1532
##
1533
readinessProbe:
1534
enabled: true
1535
initialDelaySeconds: 30
1536
periodSeconds: 10
1537
timeoutSeconds: 1
1538
successThreshold: 1
1539
failureThreshold: 3
1540
## Prometheus Service Monitor
1541
## ref: https://github.com/coreos/prometheus-operator
1542
##
1543
serviceMonitor:
1544
## @param metrics.serviceMonitor.enabled Create ServiceMonitor Resource for scraping metrics using PrometheusOperator
1545
##
1546
enabled: false
1547
## @param metrics.serviceMonitor.namespace Namespace which Prometheus is running in
1548
##
1549
namespace: ""
1550
## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1551
##
1552
jobLabel: ""
1553
## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped
1554
##
1555
interval: 30s
1556
## @param metrics.serviceMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
1557
## e.g:
1558
## scrapeTimeout: 30s
1559
##
1560
scrapeTimeout: ""
1561
## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
1562
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1563
##
1564
relabelings: []
1565
## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
1566
## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1567
##
1568
metricRelabelings: []
1569
## @param metrics.serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels
1570
##
1571
honorLabels: false
1572
## @param metrics.serviceMonitor.selector ServiceMonitor selector labels
1573
##
1574
## selector:
1575
## prometheus: my-prometheus
1576
##
1577
selector: {}
1578
## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor
1579
##
1580
labels: {}
1581
## Prometheus Operator PrometheusRule configuration
1582
##
1583
prometheusRule:
1584
## @param metrics.prometheusRule.enabled if `true`, creates a Prometheus Operator PrometheusRule (also requires `metrics.enabled` to be `true` and `metrics.prometheusRule.rules`)
1585
##
1586
enabled: false
1587
## @param metrics.prometheusRule.namespace Namespace for the PrometheusRule Resource (defaults to the Release Namespace)
1588
##
1589
namespace: ""
1590
## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
1591
##
1592
additionalLabels: {}
1593
## @param metrics.prometheusRule.rules Prometheus Rule definitions
1594
## - alert: MariaDB-Down
1595
## expr: absent(up{job="mariadb"} == 1)
1596
## for: 5m
1597
## labels:
1598
## severity: warning
1599
## service: mariadb
1600
## annotations:
1601
## message: 'MariaDB instance {{ `{{` }} $labels.instance {{ `}}` }} is down'
1602
## summary: MariaDB instance is down
1603
##
1604
rules: []
1605
## @section NetworkPolicy parameters
1606
## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1607
##
1608
networkPolicy:
1609
## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
1610
##
1611
enabled: true
1612
## @param networkPolicy.allowExternal The Policy model to apply
1613
## When set to false, only pods with the correct client label will have network access to the ports MariaDB is
1614
## listening on. When true, MariaDB will accept connections from any source (with the correct destination port).
1615
##
1616
allowExternal: true
1617
## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1618
##
1619
allowExternalEgress: true
1620
## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1621
## e.g:
1622
## extraIngress:
1623
## - ports:
1624
## - port: 1234
1625
## from:
1626
## - podSelector:
1627
## - matchLabels:
1628
## - role: frontend
1629
## - podSelector:
1630
## - matchExpressions:
1631
## - key: role
1632
## operator: In
1633
## values:
1634
## - frontend
1635
##
1636
extraIngress: []
1637
## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1638
## e.g:
1639
## extraEgress:
1640
## - ports:
1641
## - port: 1234
1642
## to:
1643
## - podSelector:
1644
## - matchLabels:
1645
## - role: frontend
1646
## - podSelector:
1647
## - matchExpressions:
1648
## - key: role
1649
## operator: In
1650
## values:
1651
## - frontend
1652
##
1653
extraEgress: []
1654
## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
1655
## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
1656
##
1657
ingressNSMatchLabels: {}
1658
ingressNSPodMatchLabels: {}
1659

The trusted source for open source

Talk to an expert
PrivacyTerms

Product

Chainguard ContainersChainguard LibrariesChainguard VMsChainguard OS PackagesChainguard ActionsChainguard Agent SkillsIntegrationsPricing
© 2026 Chainguard, Inc. All Rights Reserved.
Chainguard® and the Chainguard logo are registered trademarks of Chainguard, Inc. in the United States and/or other countries.
The other respective trademarks mentioned on this page are owned by the respective companies and use of them does not imply any affiliation or endorsement.