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.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)
26 ## - myRegistryKeySecretName
29 defaultStorageClass: ""
30 ## Security parameters
33 ## @param global.security.allowInsecureImages Allows skipping image verification
34 allowInsecureImages: false
35 ## Compatibility adaptations for Kubernetes platforms
38 ## Compatibility adaptations for 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)
43 adaptSecurityContext: auto
45## @section Common parameters
48## @param kubeVersion Force target Kubernetes version (using Helm capabilities if not set)
51## @param nameOverride String to partially override mariadb.fullname
54## @param fullnameOverride String to fully override mariadb.fullname
57## @param clusterDomain Default Kubernetes cluster domain
59clusterDomain: cluster.local
60## @param commonAnnotations Common annotations to add to all MariaDB resources (sub-charts are not considered)
63## @param commonLabels Common labels to add to all MariaDB resources (sub-charts are not considered)
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/
70## @param runtimeClassName Name of the Runtime Class for all MariaDB pods
71## ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
74## @param extraDeploy Array of extra objects to deploy with the release (evaluated as a template)
77## Enable diagnostic mode in the deployment
80 ## @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
83 ## @param diagnosticMode.command Command to override all containers in the deployment
87 ## @param diagnosticMode.args Args to override all containers in the deployment
91## @param serviceBindings.enabled Create secret for service binding (Experimental)
92## Ref: https://servicebinding.io/service-provider/
96## @section MariaDB common parameters
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
110 repository: chainguard-private/mariadb-iamguarded
113 ## Specify a imagePullPolicy
114 ## ref: https://kubernetes.io/docs/concepts/containers/images/#pre-pulled-images
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/
121 ## - myRegistryKeySecretName
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
128## @param architecture MariaDB architecture (`standalone` or `replication`)
130architecture: standalone
131## MariaDB Authentication parameters
134 ## @param auth.rootPassword Password for the `root` user. Ignored if existing secret is provided.
137 ## @param auth.database Name for a custom database to create
139 database: my_database
140 ## @param auth.username Name for a custom user to create
143 ## @param auth.password Password for the new user. Ignored if existing secret is provided
146 ## @param auth.replicationUser MariaDB replication user
148 replicationUser: replicator
149 ## @param auth.replicationPassword MariaDB replication user password. Ignored if existing secret is provided
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`
155 ## @param auth.forcePassword Force users to specify required passwords
158 ## @param auth.usePasswordFiles Mount credentials as files instead of using environment variables
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`
163 ## customPasswordFiles:
164 ## root: /vault/secrets/mariadb-root
165 ## user: /vault/secrets/mariadb-user
166 ## replicator: /vault/secrets/mariadb-replicator
168 customPasswordFiles: {}
169## @param initdbScripts Dictionary of initdb scripts
170## Specify dictionary of scripts to be run at first boot
173## my_init_script.sh: |
175## echo "Do something."
178## @param initdbScriptsConfigMap ConfigMap with the initdb scripts (Note: Overrides `initdbScripts`)
180initdbScriptsConfigMap: ""
181## @section TLS/SSL parameters
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
195 certFilename: tls.crt
196 certKeyFilename: tls.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)
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)
214 existingIssuerKind: ""
219## @section Transparent Data Encryption parameters
220## ref: https://mariadb.com/kb/en/file-key-management-encryption-plugin/
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)
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"
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:
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)
266 randomKeySecretPath: ""
267 randomKeySecretKey: ""
268 encryptedKeySecretPath: ""
269 encryptedKeySecretKey: ""
270## @section MariaDB Primary parameters
273## Mariadb Primary parameters
276 ## @param primary.name Name of the primary database (eg primary, master, leader, ...)
279 ## @param primary.command Override default container command on MariaDB Primary container(s) (useful when using custom images)
282 ## @param primary.args Override default container args on MariaDB Primary container(s) (useful when using custom images)
285 ## @param primary.lifecycleHooks for the MariaDB Primary container(s) to automate configuration before or after startup
288 ## @param primary.automountServiceAccountToken Mount Service Account token in pod
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/
295 ## @param primary.containerPorts.mysql Container port for mysql
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
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
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
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" . }}
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 }}
345 socket=/opt/iamguarded/mariadb/tmp/mysql.sock
346 default-character-set=UTF8
347 plugin_dir=/opt/iamguarded/mariadb/plugin
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
356 existingConfigmap: ""
357 ## @param primary.updateStrategy.type MariaDB primary statefulset strategy type
358 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
362 ## Can be set to RollingUpdate or OnDelete
365 ## @param primary.rollingUpdatePartition Partition update strategy for Mariadb Primary statefulset
366 ## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
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/
373 ## @param primary.podLabels Extra labels for MariaDB primary pods
374 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
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
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
384 podAntiAffinityPreset: soft
385 ## Mariadb Primary node affinity preset
386 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
389 ## @param primary.nodeAffinityPreset.type MariaDB primary node affinity preset type. Ignored if `primary.affinity` is set. Allowed values: `soft` or `hard`
392 ## @param primary.nodeAffinityPreset.key MariaDB primary node label key to match Ignored if `primary.affinity` is set.
394 ## key: "kubernetes.io/e2e-az-name"
397 ## @param primary.nodeAffinityPreset.values MariaDB primary node label values to match. Ignored if `primary.affinity` is set.
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
409 ## @param primary.nodeSelector Node labels for MariaDB primary pods assignment
410 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
413 ## @param primary.tolerations Tolerations for MariaDB primary pods assignment
414 ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
417 ## @param primary.schedulerName Name of the k8s scheduler (other than default)
418 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
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
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
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/
432 ## topologySpreadConstraints:
434 ## topologyKey: topology.kubernetes.io/zone
435 ## whenUnsatisfiable: DoNotSchedule
437 topologySpreadConstraints: []
438 ## @param primary.priorityClassName Priority class for MariaDB primary pods assignment
439 ## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
441 priorityClassName: ""
442 ## @param primary.runtimeClassName Runtime Class for MariaDB primary pods
443 ## Ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
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
456 fsGroupChangePolicy: Always
458 supplementalGroups: []
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
473 containerSecurityContext:
480 allowPrivilegeEscalation: false
481 readOnlyRootFilesystem: true
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
499 initContainerSecurityContext:
506 allowPrivilegeEscalation: false
507 readOnlyRootFilesystem: true
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).
520 resourcesPreset: "small"
521 ## @param primary.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
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
543 initialDelaySeconds: 120
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
559 initialDelaySeconds: 120
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
573 initialDelaySeconds: 30
578 ## @param primary.customStartupProbe Override default startup probe for MariaDB primary containers
580 customStartupProbe: {}
581 ## @param primary.customLivenessProbe Override default liveness probe for MariaDB primary containers
583 customLivenessProbe: {}
584 ## @param primary.customReadinessProbe Override default readiness probe for MariaDB primary containers
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:
596 startupWaitOptions: {}
597 ## @param primary.extraFlags MariaDB primary additional command line flags
598 ## Can be used to specify command line flags, for example:
600 ## extraFlags: "--max-connect-errors=1000 --max_connections=155"
603 ## @param primary.extraEnvVars Extra environment variables to be set on MariaDB primary containers
607 ## value: "Europe/Paris"
610 ## @param primary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for MariaDB primary containers
613 ## @param primary.extraEnvVarsSecret Name of existing Secret containing extra env vars for MariaDB primary containers
615 extraEnvVarsSecret: ""
616 ## Enable persistence using Persistent Volume Claims
617 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
620 ## @param primary.persistence.enabled Enable persistence on MariaDB primary replicas using a `PersistentVolumeClaim`. If false, use emptyDir
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
627 ## @param primary.persistence.subPath Subdirectory of the volume to mount at
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)
638 ## @param primary.persistence.labels Labels for the PVC
641 ## @param primary.persistence.annotations MariaDB primary persistent volume claim annotations
644 ## @param primary.persistence.accessModes MariaDB primary persistent volume access Modes
648 ## @param primary.persistence.size MariaDB primary persistent volume size
651 ## @param primary.persistence.selector Selector to match an existing Persistent Volume
657 ## @param primary.extraVolumes Optionally specify extra list of additional volumes to the MariaDB Primary pod(s)
660 ## @param primary.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the MariaDB Primary container(s)
662 extraVolumeMounts: []
663 ## @param primary.initContainers Add additional init containers for the MariaDB Primary pod(s)
666 ## @param primary.sidecars Add additional sidecar containers for the MariaDB Primary pod(s)
669 ## MariaDB Primary Service parameters
672 ## @param primary.service.type MariaDB Primary Kubernetes service type
676 ## @param primary.service.ports.mysql MariaDB Primary Kubernetes service port for MariaDB
679 ## @param primary.service.ports.metrics MariaDB Primary Kubernetes service port for metrics
682 ## @param primary.service.nodePorts.mysql MariaDB Primary Kubernetes service node port
683 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
687 ## @param primary.service.clusterIP MariaDB Primary Kubernetes service clusterIP IP
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
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
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
701 ## loadBalancerSourceRanges:
704 loadBalancerSourceRanges: []
705 ## @param primary.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
708 ## @param primary.service.annotations Provide any additional annotations which may be required
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
715 sessionAffinity: None
716 ## @param primary.service.sessionAffinityConfig Additional settings for the sessionAffinity
717 ## sessionAffinityConfig:
719 ## timeoutSeconds: 300
721 sessionAffinityConfig: {}
722 ## @param primary.service.headless.annotations Annotations of the headless service
726 ## MariaDB primary Pod Disruption Budget configuration
727 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
730 ## @param primary.pdb.create Enable/disable a Pod Disruption Budget creation for MariaDB primary pods
733 ## @param primary.pdb.minAvailable Minimum number/percentage of MariaDB primary pods that must still be available after the eviction
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.
739 ## @param primary.revisionHistoryLimit Maximum number of revisions that will be maintained in the StatefulSet
741 revisionHistoryLimit: 10
742## @section MariaDB Secondary parameters
745## Mariadb Secondary parameters
748 ## @param secondary.name Name of the secondary database (eg secondary, slave, ...)
751 ## @param secondary.replicaCount Number of MariaDB secondary replicas
754 ## @param secondary.command Override default container command on MariaDB Secondary container(s) (useful when using custom images)
757 ## @param secondary.args Override default container args on MariaDB Secondary container(s) (useful when using custom images)
760 ## @param secondary.lifecycleHooks for the MariaDB Secondary container(s) to automate configuration before or after startup
763 ## @param secondary.automountServiceAccountToken Mount Service Account token in pod
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/
770 ## @param secondary.containerPorts.mysql Container port for mysql
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
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
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
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" . }}
805 socket=/opt/iamguarded/mariadb/tmp/mysql.sock
806 default-character-set=UTF8
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
815 existingConfigmap: ""
816 ## @param secondary.updateStrategy.type MariaDB secondary statefulset strategy type
817 ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
821 ## Can be set to RollingUpdate or OnDelete
824 ## @param secondary.rollingUpdatePartition Partition update strategy for Mariadb Secondary statefulset
825 ## https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
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/
832 ## @param secondary.podLabels Extra labels for MariaDB secondary pods
833 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
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
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
843 podAntiAffinityPreset: soft
844 ## Mariadb Secondary node affinity preset
845 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity
848 ## @param secondary.nodeAffinityPreset.type MariaDB secondary node affinity preset type. Ignored if `secondary.affinity` is set. Allowed values: `soft` or `hard`
851 ## @param secondary.nodeAffinityPreset.key MariaDB secondary node label key to match Ignored if `secondary.affinity` is set.
853 ## key: "kubernetes.io/e2e-az-name"
856 ## @param secondary.nodeAffinityPreset.values MariaDB secondary node label values to match. Ignored if `secondary.affinity` is set.
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
868 ## @param secondary.nodeSelector Node labels for MariaDB secondary pods assignment
869 ## Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/
872 ## @param secondary.tolerations Tolerations for MariaDB secondary pods assignment
873 ## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
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/
879 ## topologySpreadConstraints:
881 ## topologyKey: topology.kubernetes.io/zone
882 ## whenUnsatisfiable: DoNotSchedule
884 topologySpreadConstraints: []
885 ## @param secondary.priorityClassName Priority class for MariaDB secondary pods assignment
886 ## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
888 priorityClassName: ""
889 ## @param secondary.runtimeClassName Runtime Class for MariaDB secondary pods
890 ## Ref: https://kubernetes.io/docs/concepts/containers/runtime-class/
893 ## @param secondary.schedulerName Name of the k8s scheduler (other than default)
894 ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/
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
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
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
915 fsGroupChangePolicy: Always
917 supplementalGroups: []
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
932 containerSecurityContext:
939 allowPrivilegeEscalation: false
940 readOnlyRootFilesystem: true
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).
953 resourcesPreset: "small"
954 ## @param secondary.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
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
976 initialDelaySeconds: 120
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
992 initialDelaySeconds: 120
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
1006 initialDelaySeconds: 30
1011 ## @param secondary.customStartupProbe Override default startup probe for MariaDB secondary containers
1013 customStartupProbe: {}
1014 ## @param secondary.customLivenessProbe Override default liveness probe for MariaDB secondary containers
1016 customLivenessProbe: {}
1017 ## @param secondary.customReadinessProbe Override default readiness probe for MariaDB secondary containers
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:
1029 startupWaitOptions: {}
1030 ## @param secondary.extraFlags MariaDB secondary additional command line flags
1031 ## Can be used to specify command line flags, for example:
1033 ## extraFlags: "--max-connect-errors=1000 --max_connections=155"
1036 ## @param secondary.extraEnvVars Extra environment variables to be set on MariaDB secondary containers
1040 ## value: "Europe/Paris"
1043 ## @param secondary.extraEnvVarsCM Name of existing ConfigMap containing extra env vars for MariaDB secondary containers
1046 ## @param secondary.extraEnvVarsSecret Name of existing Secret containing extra env vars for MariaDB secondary containers
1048 extraEnvVarsSecret: ""
1049 ## Enable persistence using Persistent Volume Claims
1050 ## ref: https://kubernetes.io/docs/concepts/storage/persistent-volumes/
1053 ## @param secondary.persistence.enabled Enable persistence on MariaDB secondary replicas using a `PersistentVolumeClaim`
1056 ## @param secondary.persistence.subPath Subdirectory of the volume to mount at
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)
1067 ## @param secondary.persistence.labels Labels for the PVC
1070 ## @param secondary.persistence.annotations MariaDB secondary persistent volume claim annotations
1073 ## @param secondary.persistence.accessModes MariaDB secondary persistent volume access Modes
1077 ## @param secondary.persistence.size MariaDB secondary persistent volume size
1080 ## @param secondary.persistence.selector Selector to match an existing Persistent Volume
1086 ## @param secondary.extraVolumes Optionally specify extra list of additional volumes to the MariaDB secondary pod(s)
1089 ## @param secondary.extraVolumeMounts Optionally specify extra list of additional volumeMounts for the MariaDB secondary container(s)
1091 extraVolumeMounts: []
1092 ## @param secondary.initContainers Add additional init containers for the MariaDB secondary pod(s)
1095 ## @param secondary.sidecars Add additional sidecar containers for the MariaDB secondary pod(s)
1098 ## MariaDB Secondary Service parameters
1101 ## @param secondary.service.type MariaDB secondary Kubernetes service type
1105 ## @param secondary.service.ports.mysql MariaDB secondary Kubernetes service port for MariaDB
1108 ## @param secondary.service.ports.metrics MariaDB secondary Kubernetes service port for metrics
1111 ## @param secondary.service.nodePorts.mysql MariaDB secondary Kubernetes service node port
1112 ## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
1116 ## @param secondary.service.clusterIP MariaDB secondary Kubernetes service clusterIP IP
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
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
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
1132 ## loadBalancerSourceRanges:
1135 loadBalancerSourceRanges: []
1136 ## @param secondary.service.extraPorts Extra ports to expose (normally used with the `sidecar` value)
1139 ## @param secondary.service.annotations Provide any additional annotations which may be required
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
1146 sessionAffinity: None
1147 ## @param secondary.service.sessionAffinityConfig Additional settings for the sessionAffinity
1148 ## sessionAffinityConfig:
1150 ## timeoutSeconds: 300
1152 sessionAffinityConfig: {}
1153 ## MariaDB secondary Pod Disruption Budget configuration
1154 ## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
1157 ## @param secondary.pdb.create Enable/disable a Pod Disruption Budget creation for MariaDB secondary pods
1160 ## @param secondary.pdb.minAvailable Minimum number/percentage of MariaDB secondary pods that should remain scheduled
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.
1166 ## @param secondary.revisionHistoryLimit Maximum number of revisions that will be maintained in the StatefulSet
1168 revisionHistoryLimit: 10
1169## @section RBAC parameters
1172## MariaDB pods ServiceAccount
1173## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
1176 ## @param serviceAccount.create Enable the creation of a ServiceAccount for MariaDB pods
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
1183 ## @param serviceAccount.annotations Annotations for MariaDB Service Account
1186 ## @param serviceAccount.automountServiceAccountToken Automount service account token for the server service account
1188 automountServiceAccountToken: false
1190## ref: https://kubernetes.io/docs/admin/authorization/rbac/
1193 ## @param rbac.create Whether to create and use RBAC resources or not
1196## @section Password update job
1199 ## @param passwordUpdateJob.enabled Enable password update job
1202 ## @param passwordUpdateJob.backoffLimit set backoff limit of the job
1205 ## @param passwordUpdateJob.command Override default container command on MariaDB Primary container(s) (useful when using custom images)
1208 ## @param passwordUpdateJob.args Override default container args on MariaDB Primary container(s) (useful when using custom images)
1211 ## @param passwordUpdateJob.extraCommands Extra commands to pass to the generation job
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)
1221 replicationPassword: ""
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
1236 containerSecurityContext:
1243 readOnlyRootFilesystem: true
1244 allowPrivilegeEscalation: false
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
1259 fsGroupChangePolicy: Always
1261 supplementalGroups: []
1263 ## @param passwordUpdateJob.extraEnvVars Array containing extra env vars to configure the credential init job
1266 ## - name: GF_DEFAULT_INSTANCE_NAME
1267 ## value: my-instance
1270 ## @param passwordUpdateJob.extraEnvVarsCM ConfigMap containing extra env vars to configure the credential init job
1273 ## @param passwordUpdateJob.extraEnvVarsSecret Secret containing extra env vars to configure the credential init job (in case of sensitive data)
1275 extraEnvVarsSecret: ""
1276 ## @param passwordUpdateJob.extraVolumes Optionally specify extra list of additional volumes for the credential init job
1279 ## @param passwordUpdateJob.extraVolumeMounts Array of extra volume mounts to be added to the jwt Container (evaluated as template). Normally used with `extraVolumes`.
1281 extraVolumeMounts: []
1282 ## @param passwordUpdateJob.initContainers Add additional init containers for the MariaDB Primary pod(s)
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).
1289 resourcesPreset: "micro"
1290 ## @param passwordUpdateJob.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1301 ## @param passwordUpdateJob.customLivenessProbe Custom livenessProbe that overrides the default one
1303 customLivenessProbe: {}
1304 ## @param passwordUpdateJob.customReadinessProbe Custom readinessProbe that overrides the default one
1306 customReadinessProbe: {}
1307 ## @param passwordUpdateJob.customStartupProbe Custom startupProbe that overrides the default one
1309 customStartupProbe: {}
1310 ## @param passwordUpdateJob.automountServiceAccountToken Mount Service Account token in pod
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/
1317 ## @param passwordUpdateJob.annotations [object] Add annotations to the job
1320 ## @param passwordUpdateJob.podLabels Additional pod labels
1321 ## Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
1324 ## @param passwordUpdateJob.podAnnotations Additional pod annotations
1325 ## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
1328## @section Volume Permissions parameters
1331## Init containers parameters:
1332## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
1335 ## @param volumePermissions.enabled Enable init container that changes the owner and group of the persistent volume(s) mountpoint to `runAsUser:fsGroup`
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
1347 repository: chainguard-private/os-shell-iamguarded
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/
1355 ## - myRegistryKeySecretName
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).
1360 resourcesPreset: "nano"
1361 ## @param volumePermissions.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
1372## @section Metrics parameters
1375## Mysqld Prometheus exporter parameters
1378 ## @param metrics.enabled Start a side-car prometheus exporter
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
1390 repository: chainguard-private/prometheus-mysqld-exporter-iamguarded
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/
1398 ## - myRegistryKeySecretName
1401 ## @param metrics.annotations [object] Annotations for the Exporter pod
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/
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
1447 ## @param metrics.extraVolumeMounts [object] Optionally specify extra list of additional volumeMounts for the MariaDB metrics container(s)
1452 ## @param metrics.containerPorts.http Container port for http
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
1469 ## containerSecurityContext:
1472 ## drop: ["NET_RAW"]
1473 ## readOnlyRootFilesystem: true
1475 containerSecurityContext:
1482 readOnlyRootFilesystem: true
1483 allowPrivilegeEscalation: false
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).
1496 resourcesPreset: "nano"
1497 ## @param metrics.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
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
1519 initialDelaySeconds: 120
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
1535 initialDelaySeconds: 30
1540 ## Prometheus Service Monitor
1541 ## ref: https://github.com/coreos/prometheus-operator
1544 ## @param metrics.serviceMonitor.enabled Create ServiceMonitor Resource for scraping metrics using PrometheusOperator
1547 ## @param metrics.serviceMonitor.namespace Namespace which Prometheus is running in
1550 ## @param metrics.serviceMonitor.jobLabel The name of the label on the target service to use as the job name in prometheus.
1553 ## @param metrics.serviceMonitor.interval Interval at which metrics should be scraped
1556 ## @param metrics.serviceMonitor.scrapeTimeout Specify the timeout after which the scrape is ended
1558 ## scrapeTimeout: 30s
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
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
1568 metricRelabelings: []
1569 ## @param metrics.serviceMonitor.honorLabels honorLabels chooses the metric's labels on collisions with target labels
1572 ## @param metrics.serviceMonitor.selector ServiceMonitor selector labels
1575 ## prometheus: my-prometheus
1578 ## @param metrics.serviceMonitor.labels Extra labels for the ServiceMonitor
1581 ## Prometheus Operator PrometheusRule configuration
1584 ## @param metrics.prometheusRule.enabled if `true`, creates a Prometheus Operator PrometheusRule (also requires `metrics.enabled` to be `true` and `metrics.prometheusRule.rules`)
1587 ## @param metrics.prometheusRule.namespace Namespace for the PrometheusRule Resource (defaults to the Release Namespace)
1590 ## @param metrics.prometheusRule.additionalLabels Additional labels that can be used so PrometheusRule will be discovered by Prometheus
1592 additionalLabels: {}
1593 ## @param metrics.prometheusRule.rules Prometheus Rule definitions
1594 ## - alert: MariaDB-Down
1595 ## expr: absent(up{job="mariadb"} == 1)
1598 ## severity: warning
1601 ## message: 'MariaDB instance {{ `{{` }} $labels.instance {{ `}}` }} is down'
1602 ## summary: MariaDB instance is down
1605## @section NetworkPolicy parameters
1606## ref: https://kubernetes.io/docs/concepts/services-networking/network-policies/
1609 ## @param networkPolicy.enabled Enable creation of NetworkPolicy resources
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).
1617 ## @param networkPolicy.allowExternalEgress Allow the pod to access any range of port and all destinations.
1619 allowExternalEgress: true
1620 ## @param networkPolicy.extraIngress [array] Add extra ingress rules to the NetworkPolicy
1630 ## - matchExpressions:
1637 ## @param networkPolicy.extraEgress [array] Add extra ingress rules to the NetworkPolicy
1647 ## - matchExpressions:
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
1657 ingressNSMatchLabels: {}
1658 ingressNSPodMatchLabels: {}