1# This file has been modified by Chainguard, Inc.
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
7# Copyright Broadcom, Inc. All Rights Reserved.
8# SPDX-License-Identifier: APACHE-2.0
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
16## @param global.imageRegistry Global Docker Image registry
17## @param global.imagePullSecrets Global Docker registry secret names as an array
18## @param global.defaultStorageClass Global default StorageClass for Persistent Volume(s)
24 ## - myRegistryKeySecretName
27 defaultStorageClass: ""
28 ## Security parameters
31 ## @param global.security.allowInsecureImages Allows skipping image verification
32 allowInsecureImages: false
33 ## Compatibility adaptations for Kubernetes platforms
36 ## Compatibility adaptations for Openshift
39 ## @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)
41 adaptSecurityContext: auto
43## @section Common parameters
46## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
49## @param nameOverride String to partially override mariadb.fullname
52## @param fullnameOverride String to fully override mariadb.fullname
55## @param clusterDomain Default Kubernetes cluster domain
57clusterDomain: cluster.local
58## @param commonAnnotations Common annotations to add to all MariaDB resources (sub-charts are not considered)
61## @param commonLabels Common labels to add to all MariaDB resources (sub-charts are not considered)
64## @param schedulerName Name of the scheduler (other than default) to dispatch pods
65## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
68## @param runtimeClassName Name of the Runtime Class for all MariaDB pods
69## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
72## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template)
75## Enable diagnostic mode in the deployment
78 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
81 ## @param diagnosticMode.command Command to override all containers in the deployment
85 ## @param diagnosticMode.args Args to override all containers in the deployment
89## @param serviceBindings.enabled Create secret for service binding (Experimental)
90## Ref: https://servicebinding.io/service-provider/
94## @section MariaDB common parameters
97## Iamguarded MariaDB image
98## @param image.registry [default: REGISTRY_NAME] MariaDB image registry
99## @param image.repository [default: REPOSITORY_NAME/mariadb] MariaDB image repository
100## @skip image.tag MariaDB image tag (immutable tags are recommended)
101## @param image.digest MariaDB image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
102## @param image.pullPolicy MariaDB image pull policy
103## @param image.pullSecrets Specify docker-registry secret names as an array
104## @param image.debug Specify if debug logs should be enabled
108 repository: chainguard-private/mariadb-iamguarded
111 ## Specify a imagePullPolicy
112 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
114 pullPolicy: IfNotPresent
115 ## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
116 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
119 ## - myRegistryKeySecretName
122 ## Set to true if you would like to see extra information on logs
123 ## It turns BASH and/or NAMI debugging in the image
126## @param architecture MariaDB architecture (`standalone` or `replication`)
128architecture: standalone
129## MariaDB Authentication parameters
132 ## @param auth.rootPassword Password for the `root` user. Ignored if existing secret is provided.
135 ## @param auth.database Name for a custom database to create
137 database: my_database
138 ## @param auth.username Name for a custom user to create
141 ## @param auth.password Password for the new user. Ignored if existing secret is provided
144 ## @param auth.replicationUser MariaDB replication user
146 replicationUser: replicator
147 ## @param auth.replicationPassword MariaDB replication user password. Ignored if existing secret is provided
149 replicationPassword: ""
150 ## @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 ## @param auth.forcePassword Force users to specify required passwords
156 ## @param auth.usePasswordFiles Mount credentials as files instead of using environment variables
158 usePasswordFiles: true
159 ## @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`
161 ## customPasswordFiles:
162 ## root: /vault/secrets/mariadb-root
163 ## user: /vault/secrets/mariadb-user
164 ## replicator: /vault/secrets/mariadb-replicator
166 customPasswordFiles: {}
167## @param initdbScripts Dictionary of initdb scripts
168## Specify dictionary of scripts to be run at first boot
171## my_init_script.sh: |
173## echo "Do something."
176## @param initdbScriptsConfigMap ConfigMap with the initdb scripts (Note: Overrides `initdbScripts`)
178initdbScriptsConfigMap: ""
179## @section TLS/SSL parameters
181## @param tls.enabled Enable TLS in MariaDB
182## @param tls.existingSecret Existing secret that contains TLS certificates
183## @param tls.certFilename The secret key from the existingSecret if 'cert' key different from the default (tls.crt)
184## @param tls.certKeyFilename The secret key from the existingSecret if 'key' key different from the default (tls.key)
185## @param tls.certCAFilename The secret key from the existingSecret if 'ca' key different from the default (tls.crt)
186## @param tls.ca CA certificate for TLS. Ignored if `tls.existingSecret` is set
187## @param tls.cert TLS certificate. Ignored if `tls.master.existingSecret` is set
188## @param tls.key TLS key. Ignored if `tls.master.existingSecret` is set
193 certFilename: tls.crt
194 certKeyFilename: tls.key
199 ## @param tls.autoGenerated.enabled Enable automatic generation of certificates for TLS
200 ## @param tls.autoGenerated.engine Mechanism to generate the certificates (allowed values: helm, cert-manager)
204 ## @param tls.autoGenerated.certManager.existingIssuer The name of an existing Issuer to use for generating the certificates (only for `cert-manager` engine)
205 ## @param tls.autoGenerated.certManager.existingIssuerKind Existing Issuer kind, defaults to Issuer (only for `cert-manager` engine)
206 ## @param tls.autoGenerated.certManager.keyAlgorithm Key algorithm for the certificates (only for `cert-manager` engine)
207 ## @param tls.autoGenerated.certManager.keySize Key size for the certificates (only for `cert-manager` engine)
208 ## @param tls.autoGenerated.certManager.duration Duration for the certificates (only for `cert-manager` engine)
209 ## @param tls.autoGenerated.certManager.renewBefore Renewal period for the certificates (only for `cert-manager` engine)
212 existingIssuerKind: ""
217## @section Transparent Data Encryption parameters
218## ref: https://mariadb.com/kb/en/file-key-management-encryption-plugin/
220## @param tde.enabled Enable Transparent Data Encryption using the File Key Management Encryption Plugin for MariaDB
221## @param tde.existingSecret Existing secret that contains Transparent Data Encryption key files used when secretsStoreProvider is not enabled
222## @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
223## @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
224## @param tde.fileKeyManagementEncryptionAlgorithm Encryption algorithm used for encrypting data (allowed values: AES_CTR, AES_CBC | default: AES_CTR)
225## @param tde.innodbEncryptTables Enables automatic encryption of all InnoDB tablespaces (allowed values: FORCE, ON, OFF | default: FORCE)
226## @param tde.innodbEncryptLog Enables encryption of the InnoDB redo log (allowed values: ON, OFF | default: ON)
227## @param tde.innodbEncryptTemporaryTables Enables automatic encryption of the InnoDB temporary tablespace (allowed values: ON, OFF | default: ON)
228## @param tde.innodbEncryptionThreads Number of threads to use for encryption (default: 4)
229## @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)
230## @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)
231## @param tde.encryptBINLOG Enables encrypting binary logs including relay logs (allowed values: ON, OFF | default: ON)
232## @param tde.ariaEncryptTables Enables automatic encryption of all Aria tablespaces (allowed values: ON, OFF | default: ON)
237 randomKeyFilename: keyfile.key
238 encryptedKeyFilename: keyfile.enc
239 fileKeyManagementEncryptionAlgorithm: AES_CTR
240 innodbEncryptTables: FORCE
241 innodbEncryptLog: "ON"
242 innodbEncryptTemporaryTables: "ON"
243 encryptTmpDiskTables: "ON"
244 encryptTmpTiles: "ON"
246 ariaEncryptTables: "ON"
247 innodbEncryptionThreads: 4
248 ## @param tde.secretsStoreProvider.enabled Enable use of secrets store provider for Transparent Data Encryption key files
249 ## @param tde.secretsStoreProvider.provider Type of provider used in secrets store provider class (allowed values: vault)
250 secretsStoreProvider:
253 ## @param tde.secretsStoreProvider.vault.roleName The name of the HashiCorp Vault role used for accessing the key files (only for `vault` provider)
254 ## @param tde.secretsStoreProvider.vault.address The URL of the HashiCorp Vault server (only for `vault` provider)
255 ## @param tde.secretsStoreProvider.vault.authMountPath The HashiCorp Vault auth mount path (only for `vault` provider)
256 ## @param tde.secretsStoreProvider.vault.randomKeySecretPath The HashiCorp Vault secret path for the 'random keyfile' (only for `vault` provider)
257 ## @param tde.secretsStoreProvider.vault.randomKeySecretKey The HashiCorp Vault secret key for the 'random keyfile' (only for `vault` provider)
258 ## @param tde.secretsStoreProvider.vault.encryptedKeySecretPath The HashiCorp Vault secret path for the 'encrypted keyfile' (only for `vault` provider)
259 ## @param tde.secretsStoreProvider.vault.encryptedKeySecretKey The HashiCorp Vault secret key for the 'encrypted keyfile' (only for `vault` provider)
264 randomKeySecretPath: ""
265 randomKeySecretKey: ""
266 encryptedKeySecretPath: ""
267 encryptedKeySecretKey: ""
268## @section MariaDB Primary parameters
271## Mariadb Primary parameters
274 ## @param primary.name Name of the primary database (eg primary, master, leader, ...)
277 ## @param primary.command Override default container command on MariaDB Primary container(s) (useful when using custom images)
280 ## @param primary.args Override default container args on MariaDB Primary container(s) (useful when using custom images)
283 ## @param primary.lifecycleHooks for the MariaDB Primary container(s) to automate configuration before or after startup
286 ## @param primary.automountServiceAccountToken Mount Service Account token in pod
288 automountServiceAccountToken: false
289 ## @param primary.hostAliases Add deployment host aliases
290 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
293 ## @param primary.containerPorts.mysql Container port for mysql
297 ## @param primary.configuration [string] MariaDB Primary configuration to be injected as ConfigMap
298 ## ref: https://mysql.com/kb/en/mysql/configuring-mysql-with-mycnf/#example-of-configuration-file
303 explicit_defaults_for_timestamp
304 basedir=/opt/iamguarded/mariadb
305 datadir=/iamguarded/mariadb/data
306 plugin_dir=/opt/iamguarded/mariadb/plugin
307 port={{ .Values.primary.containerPorts.mysql }}
308 socket=/opt/iamguarded/mariadb/tmp/mysql.sock
309 tmpdir=/opt/iamguarded/mariadb/tmp
310 max_allowed_packet=16M
312 pid-file=/opt/iamguarded/mariadb/tmp/mysqld.pid
313 log-error=/opt/iamguarded/mariadb/logs/mysqld.log
314 character-set-server=UTF8
315 collation-server=utf8_general_ci
318 binlog_expire_logs_seconds=2592000
319 {{- if .Values.tls.enabled }}
320 ssl_cert=/opt/iamguarded/mariadb/certs/{{ .Values.tls.certFilename }}
321 ssl_key=/opt/iamguarded/mariadb/certs/{{ .Values.tls.certKeyFilename }}
322 {{- if (include "mariadb.tlsCACert" .) }}
323 ssl_ca={{ include "mariadb.tlsCACert" . }}
326 {{- if .Values.tde.enabled }}
327 plugin_load_add=file_key_management
328 file_key_management_filename=/opt/iamguarded/mariadb/tde/{{ .Values.tde.encryptedKeyFilename }}
329 file_key_management_filekey=FILE:/opt/iamguarded/mariadb/tde/{{ .Values.tde.randomKeyFilename }}
330 file_key_management_encryption_algorithm={{ .Values.tde.fileKeyManagementEncryptionAlgorithm }}
331 innodb_encrypt_tables={{ .Values.tde.innodbEncryptTables }}
332 innodb_encrypt_log={{ .Values.tde.innodbEncryptLog }}
333 innodb_encrypt_temporary_tables={{ .Values.tde.innodbEncryptTemporaryTables }}
334 innodb_encryption_threads={{ .Values.tde.innodbEncryptionThreads }}
335 encrypt_tmp_disk_tables={{ .Values.tde.encryptTmpDiskTables }}
336 encrypt_tmp_files={{ .Values.tde.encryptTmpTiles }}
337 encrypt_binlog={{ .Values.tde.encryptBINLOG }}
338 aria_encrypt_tables={{ .Values.tde.ariaEncryptTables }}
343 socket=/opt/iamguarded/mariadb/tmp/mysql.sock
344 default-character-set=UTF8
345 plugin_dir=/opt/iamguarded/mariadb/plugin
349 socket=/opt/iamguarded/mariadb/tmp/mysql.sock
350 pid-file=/opt/iamguarded/mariadb/tmp/mysqld.pid
351 ## @param primary.existingConfigmap Name of existing ConfigMap with MariaDB Primary configuration.
352 ## NOTE: When it's set the 'configuration' parameter is ignored
354 existingConfigmap: ""
355 ## @param primary.updateStrategy.type MariaDB primary statefulset strategy type
356 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
360 ## Can be set to RollingUpdate or OnDelete
363 ## @param primary.rollingUpdatePartition Partition update strategy for Mariadb Primary statefulset
364 ## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
366 rollingUpdatePartition: ""
367 ## @param primary.podAnnotations Additional pod annotations for MariaDB primary pods
368 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
371 ## @param primary.podLabels Extra labels for MariaDB primary pods
372 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
375 ## @param primary.podAffinityPreset MariaDB primary pod affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
376 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
378 podAffinityPreset: ""
379 ## @param primary.podAntiAffinityPreset MariaDB primary pod anti-affinity preset. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
380 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
382 podAntiAffinityPreset: soft
383 ## Mariadb Primary node affinity preset
384 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
387 ## @param primary.nodeAffinityPreset.type MariaDB primary node affinity preset type. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
390 ## @param primary.nodeAffinityPreset.key MariaDB primary node label key to match Ignored if `primary.affinity` is set.
392 ## key: "kubernetes.io/e2e-az-name"
395 ## @param primary.nodeAffinityPreset.values MariaDB primary node label values to match. Ignored if `primary.affinity` is set.
402 ## @param primary.affinity Affinity for MariaDB primary pods assignment
403 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
404 ## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
407 ## @param primary.nodeSelector Node labels for MariaDB primary pods assignment
408 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
411 ## @param primary.tolerations Tolerations for MariaDB primary pods assignment
412 ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
415 ## @param primary.schedulerName Name of the k8s scheduler (other than default)
416 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
419 ## @param primary.terminationGracePeriodSeconds In seconds, time the given to the MySQL primary pod needs to terminate gracefully
420 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
422 terminationGracePeriodSeconds: ""
423 ## @param primary.podManagementPolicy podManagementPolicy to manage scaling operation of MariaDB primary pods
424 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
426 podManagementPolicy: ""
427 ## @param primary.topologySpreadConstraints Topology Spread Constraints for MariaDB primary pods assignment
428 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
430 ## topologySpreadConstraints:
432 ## topologyKey: topology.kubernetes.io/zone
433 ## whenUnsatisfiable: DoNotSchedule
435 topologySpreadConstraints: []
436 ## @param primary.priorityClassName Priority class for MariaDB primary pods assignment
437 ## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
439 priorityClassName: ""
440 ## @param primary.runtimeClassName Runtime Class for MariaDB primary pods
441 ## Ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
444 ## MariaDB primary Pod security context
445 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
446 ## @param primary.podSecurityContext.enabled Enable security context for MariaDB primary pods
447 ## @param primary.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
448 ## @param primary.podSecurityContext.sysctls Set kernel settings using the sysctl interface
449 ## @param primary.podSecurityContext.supplementalGroups Set filesystem extra groups
450 ## @param primary.podSecurityContext.fsGroup Group ID for the mounted volumes' filesystem
454 fsGroupChangePolicy: Always
456 supplementalGroups: []
458 ## MariaDB primary container security context
459 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
460 ## @param primary.containerSecurityContext.enabled MariaDB primary container securityContext
461 ## @param primary.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
462 ## @param primary.containerSecurityContext.runAsUser User ID for the MariaDB primary container
463 ## @param primary.containerSecurityContext.runAsGroup Group ID for the MariaDB primary container
464 ## @param primary.containerSecurityContext.runAsNonRoot Set primary container's Security Context runAsNonRoot
465 ## @param primary.containerSecurityContext.privileged Set primary container's Security Context privileged
466 ## @param primary.containerSecurityContext.allowPrivilegeEscalation Set primary container's Security Context allowPrivilegeEscalation
467 ## @param primary.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
468 ## @param primary.containerSecurityContext.capabilities.drop List of capabilities to be dropped
469 ## @param primary.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
471 containerSecurityContext:
478 allowPrivilegeEscalation: false
479 readOnlyRootFilesystem: true
483 type: "RuntimeDefault"
484 ## MariaDB primary init container security context
485 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
486 ## @param primary.initContainerSecurityContext.enabled MariaDB primary init container securityContext
487 ## @param primary.initContainerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in init container
488 ## @param primary.initContainerSecurityContext.runAsUser User ID for the MariaDB primary init container
489 ## @param primary.initContainerSecurityContext.runAsGroup Group ID for the MariaDB primary init container
490 ## @param primary.initContainerSecurityContext.runAsNonRoot Set primary init container's Security Context runAsNonRoot
491 ## @param primary.initContainerSecurityContext.privileged Set primary init container's Security Context privileged
492 ## @param primary.initContainerSecurityContext.allowPrivilegeEscalation Set primary init container's Security Context allowPrivilegeEscalation
493 ## @param primary.initContainerSecurityContext.readOnlyRootFilesystem Set init container's Security Context readOnlyRootFilesystem
494 ## @param primary.initContainerSecurityContext.capabilities.drop List of capabilities to be dropped
495 ## @param primary.initContainerSecurityContext.seccompProfile.type Set init container's Security Context seccomp profile
497 initContainerSecurityContext:
504 allowPrivilegeEscalation: false
505 readOnlyRootFilesystem: true
509 type: "RuntimeDefault"
510 ## MariaDB primary container's resource requests and limits
511 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
512 ## We usually recommend not to specify default resources and to leave this as a conscious
513 ## choice for the user. This also increases chances charts run on environments with little
514 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
515 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
516 ## @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).
518 resourcesPreset: "small"
519 ## @param primary.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
530 ## Configure extra options for MariaDB primary containers' liveness, readiness and startup probes
531 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
532 ## @param primary.startupProbe.enabled Enable startupProbe
533 ## @param primary.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
534 ## @param primary.startupProbe.periodSeconds Period seconds for startupProbe
535 ## @param primary.startupProbe.timeoutSeconds Timeout seconds for startupProbe
536 ## @param primary.startupProbe.failureThreshold Failure threshold for startupProbe
537 ## @param primary.startupProbe.successThreshold Success threshold for startupProbe
541 initialDelaySeconds: 120
546 ## Configure extra options for liveness probe
547 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
548 ## @param primary.livenessProbe.enabled Enable livenessProbe
549 ## @param primary.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
550 ## @param primary.livenessProbe.periodSeconds Period seconds for livenessProbe
551 ## @param primary.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
552 ## @param primary.livenessProbe.failureThreshold Failure threshold for livenessProbe
553 ## @param primary.livenessProbe.successThreshold Success threshold for livenessProbe
557 initialDelaySeconds: 120
562 ## @param primary.readinessProbe.enabled Enable readinessProbe
563 ## @param primary.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
564 ## @param primary.readinessProbe.periodSeconds Period seconds for readinessProbe
565 ## @param primary.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
566 ## @param primary.readinessProbe.failureThreshold Failure threshold for readinessProbe
567 ## @param primary.readinessProbe.successThreshold Success threshold for readinessProbe
571 initialDelaySeconds: 30
576 ## @param primary.customStartupProbe Override default startup probe for MariaDB primary containers
578 customStartupProbe: {}
579 ## @param primary.customLivenessProbe Override default liveness probe for MariaDB primary containers
581 customLivenessProbe: {}
582 ## @param primary.customReadinessProbe Override default readiness probe for MariaDB primary containers
584 customReadinessProbe: {}
585 ## @param primary.startupWaitOptions Override default builtin startup wait check options for MariaDB primary containers
586 ## `iamguarded/mariadb` Docker image has built-in startup check mechanism,
587 ## which periodically checks if MariaDB service has started up and stops it
588 ## if all checks have failed after X tries. Use these to control these checks.
589 ## Example (with default options):
590 ## startupWaitOptions:
594 startupWaitOptions: {}
595 ## @param primary.extraFlags MariaDB primary additional command line flags
596 ## Can be used to specify command line flags, for example:
598 ## extraFlags: "--max-connect-errors=1000 --max_connections=155"
601 ## @param primary.extraEnvVars Extra environment variables to be set on MariaDB primary containers
605 ## value: "Europe/Paris"
608 ## @param primary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for MariaDB primary containers
611 ## @param primary.extraEnvVarsSecret Name of existing Secret containing extra env vars for MariaDB primary containers
613 extraEnvVarsSecret: ""
614 ## Enable persistence using Persistent Volume Claims
615 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
618 ## @param primary.persistence.enabled Enable persistence on MariaDB primary replicas using a `PersistentVolumeClaim`. If false, use emptyDir
621 ## @param primary.persistence.existingClaim Name of an existing `PersistentVolumeClaim` for MariaDB primary replicas
622 ## NOTE: When it's set the rest of persistence parameters are ignored
625 ## @param primary.persistence.subPath Subdirectory of the volume to mount at
628 ## @param primary.persistence.storageClass MariaDB primary persistent volume storage Class
629 ## If defined, storageClassName: <storageClass>
630 ## If set to "-", storageClassName: "", which disables dynamic provisioning
631 ## If undefined (the default) or set to null, no storageClassName spec is
632 ## set, choosing the default provisioner. (gp2 on AWS, standard on
633 ## GKE, AWS & OpenStack)
636 ## @param primary.persistence.labels Labels for the PVC
639 ## @param primary.persistence.annotations MariaDB primary persistent volume claim annotations
642 ## @param primary.persistence.accessModes MariaDB primary persistent volume access Modes
646 ## @param primary.persistence.size MariaDB primary persistent volume size
649 ## @param primary.persistence.selector Selector to match an existing Persistent Volume
655 ## @param primary.extraVolumes Optionally specify extra list of additional volumes to the MariaDB Primary pod(s)
658 ## @param primary.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the MariaDB Primary container(s)
660 extraVolumeMounts: []
661 ## @param primary.initContainers Add additional init containers for the MariaDB Primary pod(s)
664 ## @param primary.sidecars Add additional sidecar containers for the MariaDB Primary pod(s)
667 ## MariaDB Primary Service parameters
670 ## @param primary.service.type MariaDB Primary Kubernetes service type
674 ## @param primary.service.ports.mysql MariaDB Primary Kubernetes service port for MariaDB
677 ## @param primary.service.ports.metrics MariaDB Primary Kubernetes service port for metrics
680 ## @param primary.service.nodePorts.mysql MariaDB Primary Kubernetes service node port
681 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
685 ## @param primary.service.clusterIP MariaDB Primary Kubernetes service clusterIP IP
688 ## @param primary.service.loadBalancerIP MariaDB Primary loadBalancerIP if service type is `LoadBalancer`
689 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
692 ## @param primary.service.externalTrafficPolicy Enable client source IP preservation
693 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
695 externalTrafficPolicy: Cluster
696 ## @param primary.service.loadBalancerSourceRanges Address that are allowed when MariaDB Primary service is LoadBalancer
697 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
699 ## loadBalancerSourceRanges:
702 loadBalancerSourceRanges: []
703 ## @param primary.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
706 ## @param primary.service.annotations Provide any additional annotations which may be required
709 ## @param primary.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
710 ## If "ClientIP", consecutive client requests will be directed to the same Pod
711 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
713 sessionAffinity: None
714 ## @param primary.service.sessionAffinityConfig Additional settings for the sessionAffinity
715 ## sessionAffinityConfig:
717 ## timeoutSeconds: 300
719 sessionAffinityConfig: {}
720 ## @param primary.service.headless.annotations Annotations of the headless service
724 ## MariaDB primary Pod Disruption Budget configuration
725 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
728 ## @param primary.pdb.create Enable/disable a Pod Disruption Budget creation for MariaDB primary pods
731 ## @param primary.pdb.minAvailable Minimum number/percentage of MariaDB primary pods that must still be available after the eviction
734 ## @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 ## @param primary.revisionHistoryLimit Maximum number of revisions that will be maintained in the StatefulSet
739 revisionHistoryLimit: 10
740## @section MariaDB Secondary parameters
743## Mariadb Secondary parameters
746 ## @param secondary.name Name of the secondary database (eg secondary, slave, ...)
749 ## @param secondary.replicaCount Number of MariaDB secondary replicas
752 ## @param secondary.command Override default container command on MariaDB Secondary container(s) (useful when using custom images)
755 ## @param secondary.args Override default container args on MariaDB Secondary container(s) (useful when using custom images)
758 ## @param secondary.lifecycleHooks for the MariaDB Secondary container(s) to automate configuration before or after startup
761 ## @param secondary.automountServiceAccountToken Mount Service Account token in pod
763 automountServiceAccountToken: false
764 ## @param secondary.hostAliases Add deployment host aliases
765 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
768 ## @param secondary.containerPorts.mysql Container port for mysql
772 ## @param secondary.configuration [string] MariaDB Secondary configuration to be injected as ConfigMap
773 ## ref: https://mysql.com/kb/en/mysql/configuring-mysql-with-mycnf/#example-of-configuration-file
778 explicit_defaults_for_timestamp
779 basedir=/opt/iamguarded/mariadb
780 datadir=/iamguarded/mariadb/data
781 port={{ .Values.secondary.containerPorts.mysql }}
782 socket=/opt/iamguarded/mariadb/tmp/mysql.sock
783 tmpdir=/opt/iamguarded/mariadb/tmp
784 max_allowed_packet=16M
786 pid-file=/opt/iamguarded/mariadb/tmp/mysqld.pid
787 log-error=/opt/iamguarded/mariadb/logs/mysqld.log
788 character-set-server=UTF8
789 collation-server=utf8_general_ci
792 binlog_expire_logs_seconds=2592000
793 {{- if .Values.tls.enabled }}
794 ssl_cert=/opt/iamguarded/mariadb/certs/{{ .Values.tls.certFilename }}
795 ssl_key=/opt/iamguarded/mariadb/certs/{{ .Values.tls.certKeyFilename }}
796 {{- if (include "mariadb.tlsCACert" .) }}
797 ssl_ca={{ include "mariadb.tlsCACert" . }}
803 socket=/opt/iamguarded/mariadb/tmp/mysql.sock
804 default-character-set=UTF8
808 socket=/opt/iamguarded/mariadb/tmp/mysql.sock
809 pid-file=/opt/iamguarded/mariadb/tmp/mysqld.pid
810 ## @param secondary.existingConfigmap Name of existing ConfigMap with MariaDB Secondary configuration.
811 ## NOTE: When it's set the 'configuration' parameter is ignored
813 existingConfigmap: ""
814 ## @param secondary.updateStrategy.type MariaDB secondary statefulset strategy type
815 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
819 ## Can be set to RollingUpdate or OnDelete
822 ## @param secondary.rollingUpdatePartition Partition update strategy for Mariadb Secondary statefulset
823 ## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
825 rollingUpdatePartition: ""
826 ## @param secondary.podAnnotations Additional pod annotations for MariaDB secondary pods
827 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
830 ## @param secondary.podLabels Extra labels for MariaDB secondary pods
831 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
834 ## @param secondary.podAffinityPreset MariaDB secondary pod affinity preset. Ignored if `secondary.affinity` is set. Allowed values: `soft` or `hard`
835 ## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
837 podAffinityPreset: ""
838 ## @param secondary.podAntiAffinityPreset MariaDB secondary pod anti-affinity preset. Ignored if `secondary.affinity` is set. Allowed values: `soft` or `hard`
839 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity
841 podAntiAffinityPreset: soft
842 ## Mariadb Secondary node affinity preset
843 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
846 ## @param secondary.nodeAffinityPreset.type MariaDB secondary node affinity preset type. Ignored if `secondary.affinity` is set. Allowed values: `soft` or `hard`
849 ## @param secondary.nodeAffinityPreset.key MariaDB secondary node label key to match Ignored if `secondary.affinity` is set.
851 ## key: "kubernetes.io/e2e-az-name"
854 ## @param secondary.nodeAffinityPreset.values MariaDB secondary node label values to match. Ignored if `secondary.affinity` is set.
861 ## @param secondary.affinity Affinity for MariaDB secondary pods assignment
862 ## Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
863 ## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
866 ## @param secondary.nodeSelector Node labels for MariaDB secondary pods assignment
867 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
870 ## @param secondary.tolerations Tolerations for MariaDB secondary pods assignment
871 ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
874 ## @param secondary.topologySpreadConstraints Topology Spread Constraints for MariaDB secondary pods assignment
875 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
877 ## topologySpreadConstraints:
879 ## topologyKey: topology.kubernetes.io/zone
880 ## whenUnsatisfiable: DoNotSchedule
882 topologySpreadConstraints: []
883 ## @param secondary.priorityClassName Priority class for MariaDB secondary pods assignment
884 ## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
886 priorityClassName: ""
887 ## @param secondary.runtimeClassName Runtime Class for MariaDB secondary pods
888 ## Ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
891 ## @param secondary.schedulerName Name of the k8s scheduler (other than default)
892 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
895 ## @param secondary.terminationGracePeriodSeconds In seconds, time the given to the MySQL secondary pod needs to terminate gracefully
896 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod/#termination-of-pods
898 terminationGracePeriodSeconds: ""
899 ## @param secondary.podManagementPolicy podManagementPolicy to manage scaling operation of MariaDB secondary pods
900 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#pod-management-policies
902 podManagementPolicy: ""
903 ## MariaDB secondary Pod security context
904 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
905 ## @param secondary.podSecurityContext.enabled Enable security context for MariaDB secondary pods
906 ## @param secondary.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
907 ## @param secondary.podSecurityContext.sysctls Set kernel settings using the sysctl interface
908 ## @param secondary.podSecurityContext.supplementalGroups Set filesystem extra groups
909 ## @param secondary.podSecurityContext.fsGroup Group ID for the mounted volumes' filesystem
913 fsGroupChangePolicy: Always
915 supplementalGroups: []
917 ## MariaDB secondary container security context
918 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
919 ## @param secondary.containerSecurityContext.enabled MariaDB secondary container securityContext
920 ## @param secondary.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
921 ## @param secondary.containerSecurityContext.runAsUser User ID for the MariaDB secondary container
922 ## @param secondary.containerSecurityContext.runAsGroup Group ID for the MariaDB secondary container
923 ## @param secondary.containerSecurityContext.runAsNonRoot Set secondary container's Security Context runAsNonRoot
924 ## @param secondary.containerSecurityContext.privileged Set secondary container's Security Context privileged
925 ## @param secondary.containerSecurityContext.allowPrivilegeEscalation Set secondary container's Security Context allowPrivilegeEscalation
926 ## @param secondary.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
927 ## @param secondary.containerSecurityContext.capabilities.drop List of capabilities to be dropped
928 ## @param secondary.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
930 containerSecurityContext:
937 allowPrivilegeEscalation: false
938 readOnlyRootFilesystem: true
942 type: "RuntimeDefault"
943 ## MariaDB secondary container's resource requests and limits
944 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
945 ## We usually recommend not to specify default resources and to leave this as a conscious
946 ## choice for the user. This also increases chances charts run on environments with little
947 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
948 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
949 ## @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).
951 resourcesPreset: "small"
952 ## @param secondary.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
963 ## Configure extra options for MariaDB Secondary containers' liveness, readiness and startup probes
964 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
965 ## @param secondary.startupProbe.enabled Enable startupProbe
966 ## @param secondary.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
967 ## @param secondary.startupProbe.periodSeconds Period seconds for startupProbe
968 ## @param secondary.startupProbe.timeoutSeconds Timeout seconds for startupProbe
969 ## @param secondary.startupProbe.failureThreshold Failure threshold for startupProbe
970 ## @param secondary.startupProbe.successThreshold Success threshold for startupProbe
974 initialDelaySeconds: 120
979 ## Configure extra options for liveness probe
980 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
981 ## @param secondary.livenessProbe.enabled Enable livenessProbe
982 ## @param secondary.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
983 ## @param secondary.livenessProbe.periodSeconds Period seconds for livenessProbe
984 ## @param secondary.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
985 ## @param secondary.livenessProbe.failureThreshold Failure threshold for livenessProbe
986 ## @param secondary.livenessProbe.successThreshold Success threshold for livenessProbe
990 initialDelaySeconds: 120
995 ## @param secondary.readinessProbe.enabled Enable readinessProbe
996 ## @param secondary.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
997 ## @param secondary.readinessProbe.periodSeconds Period seconds for readinessProbe
998 ## @param secondary.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
999 ## @param secondary.readinessProbe.failureThreshold Failure threshold for readinessProbe
1000 ## @param secondary.readinessProbe.successThreshold Success threshold for readinessProbe
1004 initialDelaySeconds: 30
1009 ## @param secondary.customStartupProbe Override default startup probe for MariaDB secondary containers
1011 customStartupProbe: {}
1012 ## @param secondary.customLivenessProbe Override default liveness probe for MariaDB secondary containers
1014 customLivenessProbe: {}
1015 ## @param secondary.customReadinessProbe Override default readiness probe for MariaDB secondary containers
1017 customReadinessProbe: {}
1018 ## @param secondary.startupWaitOptions Override default builtin startup wait check options for MariaDB secondary containers
1019 ## `iamguarded/mariadb` Docker image has built-in startup check mechanism,
1020 ## which periodically checks if MariaDB service has started up and stops it
1021 ## if all checks have failed after X tries. Use these to control these checks.
1022 ## Example (with default options):
1023 ## startupWaitOptions:
1027 startupWaitOptions: {}
1028 ## @param secondary.extraFlags MariaDB secondary additional command line flags
1029 ## Can be used to specify command line flags, for example:
1031 ## extraFlags: "--max-connect-errors=1000 --max_connections=155"
1034 ## @param secondary.extraEnvVars Extra environment variables to be set on MariaDB secondary containers
1038 ## value: "Europe/Paris"
1041 ## @param secondary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for MariaDB secondary containers
1044 ## @param secondary.extraEnvVarsSecret Name of existing Secret containing extra env vars for MariaDB secondary containers
1046 extraEnvVarsSecret: ""
1047 ## Enable persistence using Persistent Volume Claims
1048 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1051 ## @param secondary.persistence.enabled Enable persistence on MariaDB secondary replicas using a `PersistentVolumeClaim`
1054 ## @param secondary.persistence.subPath Subdirectory of the volume to mount at
1057 ## @param secondary.persistence.storageClass MariaDB secondary persistent volume storage Class
1058 ## If defined, storageClassName: <storageClass>
1059 ## If set to "-", storageClassName: "", which disables dynamic provisioning
1060 ## If undefined (the default) or set to null, no storageClassName spec is
1061 ## set, choosing the default provisioner. (gp2 on AWS, standard on
1062 ## GKE, AWS & OpenStack)
1065 ## @param secondary.persistence.labels Labels for the PVC
1068 ## @param secondary.persistence.annotations MariaDB secondary persistent volume claim annotations
1071 ## @param secondary.persistence.accessModes MariaDB secondary persistent volume access Modes
1075 ## @param secondary.persistence.size MariaDB secondary persistent volume size
1078 ## @param secondary.persistence.selector Selector to match an existing Persistent Volume
1084 ## @param secondary.extraVolumes Optionally specify extra list of additional volumes to the MariaDB secondary pod(s)
1087 ## @param secondary.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the MariaDB secondary container(s)
1089 extraVolumeMounts: []
1090 ## @param secondary.initContainers Add additional init containers for the MariaDB secondary pod(s)
1093 ## @param secondary.sidecars Add additional sidecar containers for the MariaDB secondary pod(s)
1096 ## MariaDB Secondary Service parameters
1099 ## @param secondary.service.type MariaDB secondary Kubernetes service type
1103 ## @param secondary.service.ports.mysql MariaDB secondary Kubernetes service port for MariaDB
1106 ## @param secondary.service.ports.metrics MariaDB secondary Kubernetes service port for metrics
1109 ## @param secondary.service.nodePorts.mysql MariaDB secondary Kubernetes service node port
1110 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1114 ## @param secondary.service.clusterIP MariaDB secondary Kubernetes service clusterIP IP
1119 ## @param secondary.service.loadBalancerIP MariaDB secondary loadBalancerIP if service type is `LoadBalancer`
1120 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer
1123 ## @param secondary.service.externalTrafficPolicy Enable client source IP preservation
1124 ## ref https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip
1126 externalTrafficPolicy: Cluster
1127 ## @param secondary.service.loadBalancerSourceRanges Address that are allowed when MariaDB secondary service is LoadBalancer
1128 ## https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/#restrict-access-for-loadbalancer-service
1130 ## loadBalancerSourceRanges:
1133 loadBalancerSourceRanges: []
1134 ## @param secondary.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1137 ## @param secondary.service.annotations Provide any additional annotations which may be required
1140 ## @param secondary.service.sessionAffinity Session Affinity for Kubernetes service, can be "None" or "ClientIP"
1141 ## If "ClientIP", consecutive client requests will be directed to the same Pod
1142 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies
1144 sessionAffinity: None
1145 ## @param secondary.service.sessionAffinityConfig Additional settings for the sessionAffinity
1146 ## sessionAffinityConfig:
1148 ## timeoutSeconds: 300
1150 sessionAffinityConfig: {}
1151 ## MariaDB secondary Pod Disruption Budget configuration
1152 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
1155 ## @param secondary.pdb.create Enable/disable a Pod Disruption Budget creation for MariaDB secondary pods
1158 ## @param secondary.pdb.minAvailable Minimum number/percentage of MariaDB secondary pods that should remain scheduled
1161 ## @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 ## @param secondary.revisionHistoryLimit Maximum number of revisions that will be maintained in the StatefulSet
1166 revisionHistoryLimit: 10
1167## @section RBAC parameters
1170## MariaDB pods ServiceAccount
1171## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1174 ## @param serviceAccount.create Enable the creation of a ServiceAccount for MariaDB pods
1177 ## @param serviceAccount.name Name of the created ServiceAccount
1178 ## If not set and create is true, a name is generated using the mariadb.fullname template
1181 ## @param serviceAccount.annotations Annotations for MariaDB Service Account
1184 ## @param serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1186 automountServiceAccountToken: false
1188## ref: https://kubernetes.io/docs/admin/authorization/rbac/
1191 ## @param rbac.create Whether to create and use RBAC resources or not
1194## @section Password update job
1197 ## @param passwordUpdateJob.enabled Enable password update job
1200 ## @param passwordUpdateJob.backoffLimit set backoff limit of the job
1203 ## @param passwordUpdateJob.command Override default container command on MariaDB Primary container(s) (useful when using custom images)
1206 ## @param passwordUpdateJob.args Override default container args on MariaDB Primary container(s) (useful when using custom images)
1209 ## @param passwordUpdateJob.extraCommands Extra commands to pass to the generation job
1212 ## @param passwordUpdateJob.previousPasswords.rootPassword Previous root password (set if the password secret was already changed)
1213 ## @param passwordUpdateJob.previousPasswords.password Previous password (set if the password secret was already changed)
1214 ## @param passwordUpdateJob.previousPasswords.replicationPassword Previous replication password (set if the password secret was already changed)
1215 ## @param passwordUpdateJob.previousPasswords.existingSecret Name of a secret containing the previous passwords (set if the password secret was already changed)
1219 replicationPassword: ""
1221 ## Configure Container Security Context
1222 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1223 ## @param passwordUpdateJob.containerSecurityContext.enabled Enabled containers' Security Context
1224 ## @param passwordUpdateJob.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1225 ## @param passwordUpdateJob.containerSecurityContext.runAsUser Set containers' Security Context runAsUser
1226 ## @param passwordUpdateJob.containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
1227 ## @param passwordUpdateJob.containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
1228 ## @param passwordUpdateJob.containerSecurityContext.privileged Set container's Security Context privileged
1229 ## @param passwordUpdateJob.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1230 ## @param passwordUpdateJob.containerSecurityContext.allowPrivilegeEscalation Set container's Security Context allowPrivilegeEscalation
1231 ## @param passwordUpdateJob.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1232 ## @param passwordUpdateJob.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1234 containerSecurityContext:
1241 readOnlyRootFilesystem: true
1242 allowPrivilegeEscalation: false
1246 type: "RuntimeDefault"
1247 ## Configure Pods Security Context
1248 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
1249 ## @param passwordUpdateJob.podSecurityContext.enabled Enabled credential init job pods' Security Context
1250 ## @param passwordUpdateJob.podSecurityContext.fsGroupChangePolicy Set filesystem group change policy
1251 ## @param passwordUpdateJob.podSecurityContext.sysctls Set kernel settings using the sysctl interface
1252 ## @param passwordUpdateJob.podSecurityContext.supplementalGroups Set filesystem extra groups
1253 ## @param passwordUpdateJob.podSecurityContext.fsGroup Set credential init job pod's Security Context fsGroup
1257 fsGroupChangePolicy: Always
1259 supplementalGroups: []
1261 ## @param passwordUpdateJob.extraEnvVars Array containing extra env vars to configure the credential init job
1264 ## - name: GF_DEFAULT_INSTANCE_NAME
1265 ## value: my-instance
1268 ## @param passwordUpdateJob.extraEnvVarsCM ConfigMap containing extra env vars to configure the credential init job
1271 ## @param passwordUpdateJob.extraEnvVarsSecret Secret containing extra env vars to configure the credential init job (in case of sensitive data)
1273 extraEnvVarsSecret: ""
1274 ## @param passwordUpdateJob.extraVolumes Optionally specify extra list of additional volumes for the credential init job
1277 ## @param passwordUpdateJob.extraVolumeMounts Array of extra volume mounts to be added to the jwt Container (evaluated as template). Normally used with `extraVolumes`.
1279 extraVolumeMounts: []
1280 ## @param passwordUpdateJob.initContainers Add additional init containers for the MariaDB Primary pod(s)
1283 ## Container resource requests and limits
1284 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1285 ## @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).
1287 resourcesPreset: "micro"
1288 ## @param passwordUpdateJob.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1299 ## @param passwordUpdateJob.customLivenessProbe Custom livenessProbe that overrides the default one
1301 customLivenessProbe: {}
1302 ## @param passwordUpdateJob.customReadinessProbe Custom readinessProbe that overrides the default one
1304 customReadinessProbe: {}
1305 ## @param passwordUpdateJob.customStartupProbe Custom startupProbe that overrides the default one
1307 customStartupProbe: {}
1308 ## @param passwordUpdateJob.automountServiceAccountToken Mount Service Account token in pod
1310 automountServiceAccountToken: false
1311 ## @param passwordUpdateJob.hostAliases Add deployment host aliases
1312 ## https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
1315 ## @param passwordUpdateJob.annotations [object] Add annotations to the job
1318 ## @param passwordUpdateJob.podLabels Additional pod labels
1319 ## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1322 ## @param passwordUpdateJob.podAnnotations Additional pod annotations
1323 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1326## @section Volume Permissions parameters
1329## Init containers parameters:
1330## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
1333 ## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume(s) mountpoint to `runAsUser:fsGroup`
1336 ## @param volumePermissions.image.registry [default: REGISTRY_NAME] Init container volume-permissions image registry
1337 ## @param volumePermissions.image.repository [default: REPOSITORY_NAME/os-shell] Init container volume-permissions image repository
1338 ## @skip volumePermissions.image.tag Init container volume-permissions image tag (immutable tags are recommended)
1339 ## @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
1340 ## @param volumePermissions.image.pullPolicy Init container volume-permissions image pull policy
1341 ## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
1345 repository: chainguard-private/os-shell-iamguarded
1348 pullPolicy: IfNotPresent
1349 ## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
1350 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1353 ## - myRegistryKeySecretName
1356 ## @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).
1358 resourcesPreset: "nano"
1359 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1370## @section Metrics parameters
1373## Mysqld Prometheus exporter parameters
1376 ## @param metrics.enabled Start a side-car prometheus exporter
1379 ## @param metrics.image.registry [default: REGISTRY_NAME] Exporter image registry
1380 ## @param metrics.image.repository [default: REPOSITORY_NAME/mysqld-exporter] Exporter image repository
1381 ## @skip metrics.image.tag Exporter image tag (immutable tags are recommended)
1382 ## @param metrics.image.digest Exporter image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
1383 ## @param metrics.image.pullPolicy Exporter image pull policy
1384 ## @param metrics.image.pullSecrets Specify docker-registry secret names as an array
1388 repository: chainguard-private/prometheus-mysqld-exporter-iamguarded
1391 pullPolicy: IfNotPresent
1392 ## Optionally specify an array of imagePullSecrets (secrets must be manually created in the namespace)
1393 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
1396 ## - myRegistryKeySecretName
1399 ## @param metrics.annotations [object] Annotations for the Exporter pod
1402 prometheus.io/scrape: "true"
1403 prometheus.io/port: "9104"
1404 ## @param metrics.extraArgs [object] Extra args to be passed to mysqld_exporter
1405 ## ref: https://github.com/prometheus/mysqld_exporter/
1407 ## - --collect.auto_increment.columns
1408 ## - --collect.binlog_size
1409 ## - --collect.engine_innodb_status
1410 ## - --collect.engine_tokudb_status
1411 ## - --collect.global_status
1412 ## - --collect.global_variables
1413 ## - --collect.info_schema.clientstats
1414 ## - --collect.info_schema.innodb_metrics
1415 ## - --collect.info_schema.innodb_tablespaces
1416 ## - --collect.info_schema.innodb_cmp
1417 ## - --collect.info_schema.innodb_cmpmem
1418 ## - --collect.info_schema.processlist
1419 ## - --collect.info_schema.processlist.min_time
1420 ## - --collect.info_schema.query_response_time
1421 ## - --collect.info_schema.tables
1422 ## - --collect.info_schema.tables.databases
1423 ## - --collect.info_schema.tablestats
1424 ## - --collect.info_schema.userstats
1425 ## - --collect.perf_schema.eventsstatements
1426 ## - --collect.perf_schema.eventsstatements.digest_text_limit
1427 ## - --collect.perf_schema.eventsstatements.limit
1428 ## - --collect.perf_schema.eventsstatements.timelimit
1429 ## - --collect.perf_schema.eventswaits
1430 ## - --collect.perf_schema.file_events
1431 ## - --collect.perf_schema.file_instances
1432 ## - --collect.perf_schema.indexiowaits
1433 ## - --collect.perf_schema.tableiowaits
1434 ## - --collect.perf_schema.tablelocks
1435 ## - --collect.perf_schema.replication_group_member_stats
1436 ## - --collect.slave_status
1437 ## - --collect.slave_hosts
1438 ## - --collect.heartbeat
1439 ## - --collect.heartbeat.database
1440 ## - --collect.heartbeat.table
1445 ## @param metrics.extraVolumeMounts [object] Optionally specify extra list of additional volumeMounts for the MariaDB metrics container(s)
1450 ## @param metrics.containerPorts.http Container port for http
1454 ## MariaDB metrics container Security Context
1455 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
1456 ## @param metrics.containerSecurityContext.enabled Enable security context for MariaDB metrics container
1457 ## @param metrics.containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
1458 ## @param metrics.containerSecurityContext.runAsUser User ID for the MariaDB metrics container
1459 ## @param metrics.containerSecurityContext.runAsGroup Group ID for the MariaDB metrics container
1460 ## @param metrics.containerSecurityContext.runAsNonRoot Set metrics container's Security Context runAsNonRoot
1461 ## @param metrics.containerSecurityContext.privileged Set metrics container's Security Context privileged
1462 ## @param metrics.containerSecurityContext.allowPrivilegeEscalation Set metrics container's Security Context allowPrivilegeEscalation
1463 ## @param metrics.containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
1464 ## @param metrics.containerSecurityContext.capabilities.drop List of capabilities to be dropped
1465 ## @param metrics.containerSecurityContext.seccompProfile.type Set container's Security Context seccomp profile
1467 ## containerSecurityContext:
1470 ## drop: ["NET_RAW"]
1471 ## readOnlyRootFilesystem: true
1473 containerSecurityContext:
1480 readOnlyRootFilesystem: true
1481 allowPrivilegeEscalation: false
1485 type: "RuntimeDefault"
1486 ## Mysqld Prometheus exporter resource requests and limits
1487 ## ref: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
1488 ## We usually recommend not to specify default resources and to leave this as a conscious
1489 ## choice for the user. This also increases chances charts run on environments with little
1490 ## resources, such as Minikube. If you do want to specify resources, uncomment the following
1491 ## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
1492 ## @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).
1494 resourcesPreset: "nano"
1495 ## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1506 ## Configure extra options for liveness probe
1507 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
1508 ## @param metrics.livenessProbe.enabled Enable livenessProbe
1509 ## @param metrics.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
1510 ## @param metrics.livenessProbe.periodSeconds Period seconds for livenessProbe
1511 ## @param metrics.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
1512 ## @param metrics.livenessProbe.failureThreshold Failure threshold for livenessProbe
1513 ## @param metrics.livenessProbe.successThreshold Success threshold for livenessProbe
1517 initialDelaySeconds: 120
1522 ## Configure extra options for readiness probe
1523 ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
1524 ## @param metrics.readinessProbe.enabled Enable readinessProbe
1525 ## @param metrics.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
1526 ## @param metrics.readinessProbe.periodSeconds Period seconds for readinessProbe
1527 ## @param metrics.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
1528 ## @param metrics.readinessProbe.failureThreshold Failure threshold for readinessProbe
1529 ## @param metrics.readinessProbe.successThreshold Success threshold for readinessProbe
1533 initialDelaySeconds: 30
1538 ## Prometheus Service Monitor
1539 ## ref: https://github.com/coreos/prometheus-operator
1542 ## @param metrics.serviceMonitor.enabled Create ServiceMonitor Resource for scraping metrics using PrometheusOperator
1545 ## @param metrics.serviceMonitor.namespace Namespace which Prometheus is running in
1548 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1551 ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped
1554 ## @param metrics.serviceMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
1556 ## scrapeTimeout: 30s
1559 ## @param metrics.serviceMonitor.relabelings RelabelConfigs to apply to samples before scraping
1560 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1563 ## @param metrics.serviceMonitor.metricRelabelings MetricRelabelConfigs to apply to samples before ingestion
1564 ## ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#relabelconfig
1566 metricRelabelings: []
1567 ## @param metrics.serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels
1570 ## @param metrics.serviceMonitor.selector ServiceMonitor selector labels
1573 ## prometheus: my-prometheus
1576 ## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor
1579 ## Prometheus Operator PrometheusRule configuration
1582 ## @param metrics.prometheusRule.enabled if `true`, creates a Prometheus Operator PrometheusRule (also requires `metrics.enabled` to be `true` and `metrics.prometheusRule.rules`)
1585 ## @param metrics.prometheusRule.namespace Namespace for the PrometheusRule Resource (defaults to the Release Namespace)
1588 ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
1590 additionalLabels: {}
1591 ## @param metrics.prometheusRule.rules Prometheus Rule definitions
1592 ## - alert: MariaDB-Down
1593 ## expr: absent(up{job="mariadb"} == 1)
1596 ## severity: warning
1599 ## message: 'MariaDB instance {{ `{{` }} $labels.instance {{ `}}` }} is down'
1600 ## summary: MariaDB instance is down
1603## @section NetworkPolicy parameters
1604## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1607 ## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
1610 ## @param networkPolicy.allowExternal The Policy model to apply
1611 ## When set to false, only pods with the correct client label will have network access to the ports MariaDB is
1612 ## listening on. When true, MariaDB will accept connections from any source (with the correct destination port).
1615 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1617 allowExternalEgress: true
1618 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1628 ## - matchExpressions:
1635 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1645 ## - matchExpressions:
1652 ## @param networkPolicy.ingressNSMatchLabels [object] Labels to match to allow traffic from other namespaces
1653 ## @param networkPolicy.ingressNSPodMatchLabels [object] Pod labels to match to allow traffic from other namespaces
1655 ingressNSMatchLabels: {}
1656 ingressNSPodMatchLabels: {}